Highcharts

Is there a way to perform server side rendering of SVG graphics using React?

旧时模样 提交于 2021-01-28 05:56:02
问题 I am using Highcharts and React for a project and need to support server side rendering for the SVG generated. Could someone suggest a way of doing it so that I get a static rendered page with images as png/jpg? The browser to be used for viewing rendered content does not support svg. Thanks. 回答1: You can render highcharts in react using the node module react-highcharts You may use the following for official documentation https://www.npmjs.com/package/react-highcharts You need to pass the

React highchart: Shared tooltip in same and different chart

老子叫甜甜 提交于 2021-01-28 05:17:56
问题 I am using react-highchart for a project. And displaying two charts: 1) Line Chart with 2 series data, it will render two lines on same chart. 2) Bar or Column Chart. Now when I hover over a point it should enable tooltip on both lines in 1st chart and in column chart as well. X-axis is datetime. It should active point on both lines like this: In react-highchart , I have used shared: true attribute, but it is not making both lines active. tooltip: { enabled: true, useHTML: true, shared: true,

Highcharts Network Graph Arrow Links

只谈情不闲聊 提交于 2021-01-28 04:21:52
问题 I am trying to create a network graph using Highcharts as follows: However, I did not see any options to add arrows instead of line segments connecting the nodes in the Highcharts network graph module. Is this possible to do this using Highcharts? If not, are there any better alternatives for this use case? Here is the code I currently have to render a network graph. eventWorkflowGraph = Highcharts.chart('graph-canvas', { chart: { type: 'networkgraph', spacingBottom: 15, spacingTop: 15,

Highcharts: Pie chart label overlap

那年仲夏 提交于 2021-01-28 02:47:10
问题 I have this pie chart: http://jsfiddle.net/gXjVY/ And as you can see, the data labels of the charts are overlapping. I tried to define the distance: -1 inside a serie, but it doesn't work. Anybody an idea, how I can define different positions, or distances for the series? 回答1: You can set for series, not for a point, different distances, see: http://jsfiddle.net/gXjVY/3/ series: [{ data: [...], dataLabels: { distance: -30 } }] 来源: https://stackoverflow.com/questions/16295279/highcharts-pie

Highcharts - DataLabels connector customization {Straight line}

烂漫一生 提交于 2021-01-28 02:21:31
问题 I am using Highcharts... How can I customize dataLabels line connector like below? Tried with softConnector: false , but not getting the desired result though. Any help highly appreciated as I am struck on this :( Online Demo Regular connector after using softConnector: false, What I am expecting 回答1: You can wrap pie.prototype.drawDataLabels method and inside this method you can change the parameters used by your connector. This is a part you need to change: connectorPath = softConnector ? [

Set minPointLength for one of two series in highchart

被刻印的时光 ゝ 提交于 2021-01-28 01:46:56
问题 I have two series of data in my highchart and want to use "minPointLength" for only one of them. Is this possible to set? My series contains only: name, color and data. My chartconfig looks like this: const chartConfig = { chart: { type: 'column', dashStyle: 'ShortDash', }, title: { text: '', }, xAxis: { padding: 0, plotLines: [{ dashStyle: 'shortDash', }], }, yAxis: { opposite: true, title: { text: '', }, gridLineDashStyle: 'dash', }, plotOptions: { column: { borderRadiusTopLeft: 32,

highcharts, Set minimum height for stacked column chart?

二次信任 提交于 2021-01-27 21:50:46
问题 I have a 3D stacked column chart. If there is some larger values in the data, the small values will not be shown in the chart. As you can see in http://jsfiddle.net/43pv1a2q/6/ series: [{ name: 'John', data: [500, 3, 4, 7, 2], //If change 500 to 5, all blocks will be shown stack: 'male' }, { name: 'Joe', data: [300, 4, 4, 2, 5], //change 300 to 3 stack: 'male' }, { name: 'Tom', data: [500, 3, 4, 7, 2], // change 500 to 5 stack: 'male' }] The minPointLength works with bar chart, but not with

Change in highcharts version breaks animation of elements

老子叫甜甜 提交于 2021-01-27 20:52:43
问题 Good day! We wrote some basic animation logic for bubble charts to create a very basic version of the Gapminder motion charts when Google decided to abandon them. All was well until we recently started a run through updating our versions of jquery/ui/highcharts. I can't see what would have changed in the changelog between 5.06 and 5.07 that would have broken it, but it seems to be in those two versions. The jquery version doesn't seem to impact it. Any ideas? function animateCircle(dataObject

Set background color for only one pane in multi-pane Highstock chart

萝らか妹 提交于 2021-01-27 17:42:46
问题 In this example: http://www.highcharts.com/stock/demo/candlestick-and-volume, is there a way to set the background color of the second pane? For example, if you add plotBackgroundColor: '#FCFFC5' to the chart definition, then both panes become yellow. Is it possible to make only the second (lower) pane yellow? 回答1: it's possible to change the background color for a specific range in your second pane using plotBands. e.g. yAxis : {[ ... plotBands : {color : '#f7d724', from : -50, to : 50}, ...

How can I use chart tooltip formatter in react-highcharts?

梦想与她 提交于 2021-01-27 03:50:26
问题 how can I use chart tooltip formatter? I am using react wrapper for highcharts. I have config like this: const CHART_CONFIG = { ... tooltip: { formatter: (tooltip) => { var s = '<b>' + this.x + '</b>'; _.each(this.points, () => { s += '<br/>' + this.series.name + ': ' + this.y + 'm'; }); return s; }, shared: true }, ... } But I can't access chart scope using this keyword and also I can't get point from tooltip param. Thanks 回答1: I've already encountered this problem. I've solved it by