angular-dc icon indicating copy to clipboard operation
angular-dc copied to clipboard

Compose not working for compositeChart

Open cramatt opened this issue 8 years ago • 0 comments

Its not possible to create a composite chart because you can't properly use compose property in config - you need access to chart.


.compose([
    dc.lineChart(composite) // composite must be chart parent
      .dimension(dim)
      .colors('red')
      .group(grp1, "Top Line")
      .dashStyle([2, 2]),
    dc.lineChart(composite) // composite must be chart parent
      .dimension(dim)
      .colors('blue')
      .group(grp2, "Bottom Line")
      .dashStyle([5, 5])
  ])
  .brushOn(false)
  .render();

cramatt avatar Oct 14 '16 02:10 cramatt