highchart-lambda-export-server icon indicating copy to clipboard operation
highchart-lambda-export-server copied to clipboard

Scale parameter is not working

Open ByeByeBlues opened this issue 4 years ago • 2 comments

Scale parameter is doing nothing at the moment. I have just pulled ready zip and used it for my AWS Lamda function. On my options I'm using height - 500 / width - 250 with trying to set scale 2,3,4 and it is always generating with same size 500x250 (even though default scale should be 2).

My chart json: { "chart": { "style": { "fontFamily": "Lucida Grande" } }, "exporting": { "sourceWidth": 500, "sourceHeight": 250, "chartOptions": { "style": {} }, "scale": "4" }, "title": { "text": "Contaminants", "align": "left" }, "xAxis": { "labels": { "rotation": -45, "useHTML": true, "style": [ "Object" ] }, "categories": [ "11 Jan 2021", "11 Jan 2021" ] }, "yAxis": { "title": { "text": "" } }, "plotOptions": { "series": { "connectNulls": true } }, "legend": { "layout": "vertical", "align": "right", "verticalAlign": "middle", "borderWidth": 0 }, "series": [ { "type": "line", "name": "Na (Sodium)", "color": "#66aa00", "marker": {}, "connectNulls": false, "data": [ 29.9, 71.5, 106.4, 129.2, 144, 176, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4 ] }, { "type": "line", "name": "Si (Silicon)", "color": "#ff9900", "marker": {}, "connectNulls": false, "data": [ 31.9, 81.5, 76.4, 29.2, 104, 96, 35.6, 78.5, 76.4, 94.1, 195.6, 154.4 ] }, { "type": "line", "name": "K (Potassium)", "color": "#dc3912", "marker": {}, "connectNulls": false, "data": [ 71.5, 106.4, 129.2, 144, 176, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9 ] }, { "type": "line", "name": "V (Vanadium)", "color": "#3366cc", "marker": {}, "connectNulls": false, "data": [ 144, 176, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2 ] } ], "credits": { "enabled": false } }

ByeByeBlues avatar Jan 14 '21 09:01 ByeByeBlues

The same chart works fine with scaling while using Highcharts CDN https://jsfiddle.net/byquswL8/2/

ByeByeBlues avatar Jan 14 '21 09:01 ByeByeBlues

@ByeByeBlues try to pass scale parameter into exportSettings

dzyubadmytro avatar Jan 15 '21 22:01 dzyubadmytro