react-jsx-highcharts icon indicating copy to clipboard operation
react-jsx-highcharts copied to clipboard

Feature request: Add drilldown

Open busla opened this issue 6 years ago • 8 comments

Would be great to see drilldown as part of this library: https://www.highcharts.com/docs/chart-concepts/drilldown

busla avatar Oct 03 '17 12:10 busla

Interesting, I wasn't even aware this feature existed! I'll look in to it!

whawker avatar Oct 04 '17 16:10 whawker

Thanks!

busla avatar Oct 04 '17 16:10 busla

As a workaround it is possible to add the drilldown data to the HighchartsChart component.

For example:

<HighchartsChart
  drilldown={{
    series: [
      {
        name: 'Value name',
        id: 'value-name',
        data: [['Sub Value 1', 10], ['Sub Value 2', 40]],
      },
    ],
  }}
>
  [...]
  <ColumnSeries
    id="col-serie"
    name="Col Serie"
    data={[{ name: 'Value name', y: 50, drilldown: 'value-name' }]}
  />
</HighchartsChart>;

And you also have to import and apply the highcharts drilldown package before using Highcharts:

import Highcharts from 'highcharts';
import applyDrilldown from 'highcharts/modules/drilldown';

applyDrilldown(Highcharts);

It would be great to have a special integration in the library but for now this works fine!

Thanks for the nice library btw!

adriantoine avatar Nov 14 '17 11:11 adriantoine

@adriantoine can you please, please, please provide a complete working example? I'm stuck trying to do this.

bondz avatar Nov 15 '17 12:11 bondz

Hmm, I seem to have figured it out, thanks though. @whawker brilliant library BTW.

bondz avatar Nov 15 '17 12:11 bondz

the drill down not works for me when the data comes from a Ajax call... only the "sumary" data is rendered. The drill down data seems to be cached with the initial data and not update when the data changes

gperdomor avatar Apr 17 '18 18:04 gperdomor

can any one give a codepen working example of react-jsx-highcharts with drilldown feature

bdevika avatar Jan 14 '19 10:01 bdevika

@whawker Thanks for the workaround in #199 I tried a similar pattern for the Maps drill-down, but was unable to get the map to redraw properly. Is there a possible workaround for the maps drill-down?

lecole avatar Mar 11 '19 17:03 lecole