data visualization to the end user dimension(mednamedimgroup(avgstockmedicinemargins({top left right bottom }valueaccessor(function ( {return value stockavg;})this should be familiar because it' graph representation of the table you created earlier one big point of interestbecause you used custom-defined reduce(function this timedc js doesn' know what data to represent with the valueaccessor(method you can specify value stockavg as the value of your choice the dc js row chart' label' font color is graythis makes your row chart somewhat hard to read you can remedy this by overwriting its css in your application css filedc-chart row text {fillblack;one simple line can make the difference between clear and an obscure graph (figure figure dc js line chart and row chart interaction now when you select an area on the line chartthe row chart is automatically adapted to represent the data for the correct time period inverselyyou can select one or multiple medicines on the row chartcausing the line chart to adjust accordingly finallylet' add the light-sensitivity dimension so the pharmacist can distinguish between stock for light-sensitive medicines and non-light-sensitive onesas shown in the following listing listing adding the light-sensitivity dimension var lightsendim crossfilterinstance dimensionfunction( ){return lightsen;})var summatedstocklight lightsendim group(reducesumfunction( {return stock;})var lightsensitivestockpiechart dc piechart("#lightsensitivestock")