Highcharts

Highstock/Highcharts - yAxis Label top

﹥>﹥吖頭↗ 提交于 2020-01-06 16:18:30
问题 Using Highstock or Highcharts, I want my yAxis label on the top. What I don't want, is a varying margin between the left border of the chart and the beginning of the grid lines. If you take a look at the following fiddle: JSFiddle Relevant part is: yAxis: { title: { align: 'high', offset: 0, text: 'Rainfall (mm)', rotation: 0, y: -10 } } This is almost correct, but the offset margin is taken from the label width. If I set offset: -41 instead, it looks exactly right. The problem is, that the

Highchart : get image url after exporting

房东的猫 提交于 2020-01-06 15:39:08
问题 I am trying to get image URL after exporting High-chart. Code works on Firefox but not in IE9. Sample code : http://jsfiddle.net/highcharts/DXQSU/ var options = { exporting: { url: 'http://export.highcharts.com/' }, xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] }; $('#export').click(function () { var obj = {}, exportUrl = options

Highcharts-vue - Using inheritance. Multiple graphs with common properties

浪尽此生 提交于 2020-01-06 15:27:09
问题 I'm trying to apply DRY principles to may Highcharts Vue implementation. I have a few highcharts in my Vue component, most of which are the same except for some labelling and the series data. I've been trying to abstract out the common properties without success. Consider the following Vue component; <template> <div> <highcharts class="chart" :options="chartOptions" ref="lineChart1"></highcharts> </div> <highcharts class="chart" :options="chartOptions" ref="lineChart2"></highcharts> </div> <

Highcharts: How do I change the legend location in the export of a chart?

你离开我真会死。 提交于 2020-01-06 15:14:59
问题 I'm trying to export a chart to various formats. Although the chart looks okay when rendered by the browser, in the PDF/PNG/JPEG export the legend seems to be overlapping. What setting should I change/add to change the position of the legend? 回答1: Exporting options can be set in chart's configuration: exporting.chartOptions.legend (API: http://api.highcharts.com/highcharts#exporting.chartOptions) Example: http://jsfiddle.net/w8z1uq9s/ exporting: { chartOptions: { legend: { y: 100, x: -50 } }

Show data labels on top in stacked column graph in highcharts

强颜欢笑 提交于 2020-01-06 15:06:25
问题 Is it possible to show datalabels on top of columns in stacked graph ? Fiddle is here I want to show the labels on the top of column. $(document).ready(function(){ var test = [100,0,0,0,0]; plotDataGroupedByAge(test); }) function plotDataGroupedByAge(data) { $('#graph_agerange').highcharts({ chart: { type: 'column', backgroundColor:'#EFEFEF' }, title: { align : "left", style:{ 'color':'#26DBA9', fontSize : '20', fontWeight :'bold' }, text: 'Age Range' }, subtitle: { text: '' }, xAxis: {

Show data labels on top in stacked column graph in highcharts

﹥>﹥吖頭↗ 提交于 2020-01-06 15:02:03
问题 Is it possible to show datalabels on top of columns in stacked graph ? Fiddle is here I want to show the labels on the top of column. $(document).ready(function(){ var test = [100,0,0,0,0]; plotDataGroupedByAge(test); }) function plotDataGroupedByAge(data) { $('#graph_agerange').highcharts({ chart: { type: 'column', backgroundColor:'#EFEFEF' }, title: { align : "left", style:{ 'color':'#26DBA9', fontSize : '20', fontWeight :'bold' }, text: 'Age Range' }, subtitle: { text: '' }, xAxis: {

How to remove duplicate values in specific column without removing related row

馋奶兔 提交于 2020-01-06 14:25:17
问题 Want to remove duplicate values in specific column without deleting the rows related with duplicate column values as below example: Input ----- Date Market Quantity 4/2/2018 Indonesia 1000 4/2/2018 Australia 500 4/2/2018 India 300 4/2/2018 USA 500 4/2/2018 Germany 200 5/2/2018 India 400 5/2/2018 Japan 400 5/2/2018 Russia 457 6/2/2018 Austria 260 6/2/2018 Swiss 700 6/2/2018 USA 1200 6/2/2018 Indonesia 400 output ------ Date Market Quantity 4/2/2018 Indonesia 1000 Australia 500 India 300 USA

highcharts correct json input

浪子不回头ぞ 提交于 2020-01-06 14:19:15
问题 UPDTAED:Now with the below code, the json is parsing correctly , But the columns are not displayed on the initial load, if i put the cursor over i can see the tooltip displaying the series name and value. However, if i re-size the browser window the columns appear. i tried adding chart.redraw(); after the updatedChart(); but it dosent help my div is as below <div id="container" style="min-width: 400px ; height: 650; margin:0 auto"></div> Any ideas please? Also, i cannot re-produce this

Dynamically generated StockChart - Form -> Checkboxes = generate my chart

杀马特。学长 韩版系。学妹 提交于 2020-01-06 13:49:12
问题 This is a example of working multi-line stock chart. Well only one small problem is - the date is moved by -1 day somehow comparing to the mysql result ( but that is not the point now ). I wanted to create a dynamic stock generator supplied by a form. The form has some checkboxes that allows us to pick what series we want to be generated. #Questions & Problems #1 PHP side : Ok lets say we picked from checkbox 1 and 3. What we need to do is to post them to the generator file right? Inside the

How to add different color border in column highchart

℡╲_俬逩灬. 提交于 2020-01-06 09:57:11
问题 Toggle method - on Click of bars show border and hide border. But Background should not change. Please refer my code, Do we have any toggle kind of method?. 回答1: Your code is not reproducible using previous code from this post Updated It as follows plotOptions: { series: { events: { click: function(e) { var chart = e.point.series.chart; e.point.select(true, false); //at any time only one column is selected /*logic for toggle*/ if (currSel !== e.point.index) { chart.series[0].data[e.point