export-csv icon indicating copy to clipboard operation
export-csv copied to clipboard

Export to csv or xls when an area is given not exporting area data for all range values

Open aykutyararbas opened this issue 10 years ago • 3 comments

var chart = new Highcharts.Chart({
               chart: {
                   renderTo: 'container',
                   zoomType: 'xy' 
              },
            title: {
                text: metricId
            },

            xAxis: {
                type: 'datetime'
            },

            yAxis: {
                title: {
                   align: 'high',
                    offset: 0,
                    text: '%',
                    rotation: 0,
                    y: 6
                }
            },

            tooltip: {
                crosshairs: true,
                shared: true,
                valueSuffix: '%'
            },

             legend: {
                layout: 'horizontal',
                align: 'left',
                x: 50,
                verticalAlign: 'top',
                y: 20,
                floating: true ,
                itemStyle: {
                 "color": "#333333", 
                 "cursor": "pointer", 
                 "fontSize": "10px", 
                 "fontWeight": "regular" 
                }
            },
            series: [{
                name: 'CPU Utilization',
                data: averages,
                zIndex: 1,
                marker: {
                    fillColor: 'white',
                    lineWidth: 2,
                    lineColor: Highcharts.getOptions().colors[0]
                }
            }, {
                name: 'Band',
                data: ranges,
                type: 'arearange',
                lineWidth: 0,
                linkedTo: ':previous',
                color: Highcharts.getOptions().colors[0],
                fillOpacity: 0.3,
                zIndex: 0
            }]
        });

aykutyararbas avatar Mar 20 '15 22:03 aykutyararbas

Can you set up a live sample on jsFiddle? Your sample is not reproduceable because the averages and ranges variables are undefined.

TorsteinHonsi avatar Mar 23 '15 08:03 TorsteinHonsi

Thanks for the quick response. Here is a fiddle example ;

http://jsfiddle.net/aykutyararbas/d4c26mrf/

Please let me know if you can access or not .

Thanks,

aykutyararbas avatar Mar 23 '15 18:03 aykutyararbas

Yes I see it. It applies to arearange series. The same probably applies to all series types with more than one data value, like bubbles, heat maps, ohlc and candlestick.

TorsteinHonsi avatar Mar 24 '15 12:03 TorsteinHonsi