Highcharts

Highcharts change legend options dynamically

青春壹個敷衍的年華 提交于 2019-12-13 02:26:03
问题 Initial Options (This is vertical draggable legend): id : '<?=$id?>', layout: 'vertical', backgroundColor: 'white', align: 'right', verticalAlign: 'top', y: legendY, x: legendX, borderWidth: 1, borderRadius: 0, title: { text: '::' }, floating: true, draggable: true I want to make legend look like http://jsfiddle.net/yqypj4qr/. I actually want, align: center, verticalAlign: bottom, layout: horizontal, borderwidth:0, shadow:false I have tried the code below. (tried both change legend directly

Highcharts error #13 and AngularJs

空扰寡人 提交于 2019-12-13 02:25:05
问题 I am new to HighCharts and I am trying determine why I am getting this error: uncaught exception: Highcharts error #13: www.highcharts.com/errors/13 I believe it has something to due with my Angular Directive and renderTo. Any suggestions would really help. Angular.js function get_chart() { var options = { chart: { type: 'column', renderTo:'container' }, title: { text: 'Twitter Data' }, xAxis: { categories: [] }, plotOptions: { series: { stacking: 'normal', dataLabels: { enabled: true, style:

Highcharts - Aligning dateTime series for shared tooltip

。_饼干妹妹 提交于 2019-12-13 02:17:32
问题 I have 2 timeseries that I would like to 'share' tooltip across. However, I have a problem where only the first point of each series is aligned and shares the tooltip. The rest of the points are slightly misaligned and therefore fail to show in the tooltip at the same time. This fiddle will help demonstrate the problem. Fiddle If you hover over the very first point, the tooltip appears with an entry for both series. But the very next datapoint only displays a single entry in the tooltip. May

Highcharts: 2nd x axis, first and last labels cut off

ε祈祈猫儿з 提交于 2019-12-13 01:53:59
问题 I have a chart with 2 linked x axes, mostly duplicated - one on top, one on bottom. They use categories, and in order to trim extra space off of the left and right of the chart, I have set the min to 0.25, and max to [# of categories].75. The first x axis responds as desired, and shows all categories correctly. The 2nd x axis does not show the first or the last category. If I remove the min/max settings, both axes show correctly, but with more space than I want. But since the first axis does

Starting Time Series Highcharts Plot at specific date/time

不羁岁月 提交于 2019-12-13 01:44:17
问题 I'm getting started with the Highcharts JS library and I'm having some trouble with starting my chart at a specific date and time. The chart is a stream gage chart so my X values are a date/time (in EPOCH format) and the y values are a gage height. I want my chart to cover 3 days starting at midnight, 2 days prior to today's date. I'm trying to use 'pointStart' to establish the beginning of my chart's x values but it's not quite working. I'm getting my three day timespan but the starting

Tooltips don't clear on IE8

余生颓废 提交于 2019-12-13 01:35:22
问题 I'm building an application using Highcharts and need to support IE8 for a large enterprise customer. This is the issue I'm seeing. Whenever I hover over a point the tooltip shows up as expected. However, when I move the mouse away the border of the tooltip remains. This happens for every point, so I end up with several partial tooltips on the chart. If I hover over the same point again, I get another tooltip. See the picture for an example. (I'd make a fiddle, but jsfiddle doesn't support

Why doesn't HighCharts render when I pull it in with Ajax?

守給你的承諾、 提交于 2019-12-13 01:26:42
问题 I have a chart that loads just fine at the path /charts/chart1 . To separate the long load times of the chart with the rest of the webpage, I'm using Ajax to load in the chart. Here's the code I'm using: $(function() { $.ajax({ type: 'GET', url: '/charts/chart1', success: function(response) { $('#firstChart').append(response); } }); }); However, the chart is not loaded in to the #firstChart <div> . The id of the actual div at /charts/chart1 is #chart1 . I've tried reloading the chart by

HighCharts stack totals on top for percent stacking

戏子无情 提交于 2019-12-13 01:16:26
问题 I'm displaying a stacked percent column chart. I want the total to be displayed on top. I added following to YAxis: stackLabels: { enabled: true, // This is ignored <<<<<< style: { fontWeight: 'bold', color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray' } } But this works only if the stacking is not "percent". How can I achieve what I want (showing total on top of the stacked column? The code can be checked at : http://jsfiddle.net/Bzs2k/1/ 回答1: Actually the stackLabels option is

Add a Specific Y-Axis Label with Highcharts

徘徊边缘 提交于 2019-12-13 01:14:34
问题 I have a graph with a labelled Y-Axis with points 1 through 100. In addition to the regularly spaced labels (0, 10, 20, etc), I want to add a label for an arbitrary point, say 47. Is this possible with highcharts? 回答1: Based on your comment, you can add a custom tick with tickPositioner function, with a code like this $(function () { $('#container').highcharts({ xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, yAxis: { tickInterval: