highstock

Move images rendered on highcharts on resize

十年热恋 提交于 2019-11-27 08:42:45
问题 I'm adding an image to the lower right hand corner of a chart in the chart loading event using the chartWidth and chartHeight properties to calculate the left / top offsets. chart.renderer.image('img.png', left, top, 30, 30).add(); When the browser window resizes the chart also resizes, but the image remains fixed at the position set above. When the chart shrinks in width, I'd like to re-position the image based on the new chart width. Is it possible to move the element using some javascript

which rangeSelector button is selected in highcharts

六眼飞鱼酱① 提交于 2019-11-27 07:18:43
问题 I want to know how to determine which rangeSelector button is selected in highstock. my rangeSelector buttons: buttons: [{ type: 'month', count: 1, text: '1 MONTH', }, { type: 'month', count: 3, text: '3 MONTH' }, { type: 'month', count: 6, text: '6 MONTH' }, { type: 'ytd', text: 'YTD' }, { type: 'year', count: 1, text: '1 YEAR' }, { type: 'all', text: 'ALL' }], for example I click on my first rangeSelector that is 1 MONTH. I want to know if this button is selected or not. Is there any event?

Manage multiple highchart charts in a single webpage

♀尐吖头ヾ 提交于 2019-11-26 21:41:19
I am having multiple highchart charts of various types(Bar,Pie, Scatter type) in a single web page. Currently I am creating config object for each graph like, { chart : {}, blah blah, } And feeding them to a custom function which will just call HighCharts.chart() . But this results in duplication of code. I want to manage all this chart rendering logic centrally. Any Idea on how to do this? Ricardo Alvaro Lohmann You can use jQuery.extend() and Highcharts.setOptions . So first you'll make the first object which will be extended by all your charts, this object will contain your Highchart

Manage multiple highchart charts in a single webpage

北战南征 提交于 2019-11-26 07:23:40
问题 I am having multiple highchart charts of various types(Bar,Pie, Scatter type) in a single web page. Currently I am creating config object for each graph like, { chart : {}, blah blah, } And feeding them to a custom function which will just call HighCharts.chart() . But this results in duplication of code. I want to manage all this chart rendering logic centrally. Any Idea on how to do this? 回答1: You can use jQuery.extend() and Highcharts.setOptions . So first you'll make the first object