johnyg07
Posts: 6
Joined: Tue Aug 24, 2021 9:01 pm

hollow candlestick with angular - disable data grouping

Hi,

I want to disable data grouping from angular highcharts stocks that is using type: 'hollowcandlestick'.
When adding option to series - I see error in angular.

Type '{ enabled: false; }' is not assignable to type 'PlotHollowcandlestickDataGroupingOptions'.
Object literal may only specify known properties, and 'enabled' does not exist in type 'PlotHollowcandlestickDataGroupingOptions'.

Code: Select all

    this.chartOptions.series = [
      {
        data: this.getOhlc(data),
        type: 'hollowcandlestick',
        name: this.chartParams_?.symbol,
        dataGrouping: {
                  enabled: false
        },
      },
      { data: this.getVolume(data), type: 'column', name: 'Volume', yAxis: 1,  dataGrouping: {enabled: false } },
    ];
can someone please help?
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: hollow candlestick with angular - disable data grouping

Hello johnyg07,

Thanks for contacting us with your issue.

I think in this case extending PlotHollowcandlestickDataGroupingOptions interface should help, but to tell for sure if that is the case I need reproduction of your chart. Please provide me with simplified working demo. You can start here: https://stackblitz.com/edit/highcharts- ... basic-line

Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”