1

I might have missed something obvious but how do you plot a non-stacked line chart in dc-js ?

I have used the example jsFiddle as a base to try and add a second group to the lineChart definition but to no avail here : https://jsfiddle.net/chapo/pcn7mot5/

I defined a second group as :

speedSumGroup2 = runDimension.group().reduceSum(function(d) {return d.Speed * d.Run / 500;});

How do I plot it along with speedSumGroup ?

Chapo
  • 2,563
  • 3
  • 30
  • 60

1 Answers1

1

The stacked chart adds each line to the previous.

If the lines should be independent, the series chart is the way to go.

Gordon
  • 19,811
  • 4
  • 36
  • 74
Chapo
  • 2,563
  • 3
  • 30
  • 60