Highcharts

Highcharts: is it possible to show all data labels in a bubble chart without them overlapping?

99封情书 提交于 2019-12-22 10:45:50
问题 I'm building a Highcharts bubble chart and am running into a challenge formatting the data labels. The data will be regularly updated, so there will be plenty of times when the bubbles either overlap or are very close to each other. By default, labels that are very close to one another will be omitted. However, my requirements for this chart include showing the data labels for all bubbles, regardless of their position (therefore, I'm setting allowOverlap to true ). Here is a variation of the

How to zoom to specific point in Highmaps

為{幸葍}努か 提交于 2019-12-22 10:24:03
问题 Highmaps / highcharts is a javascript/jquery adapter that renders maps in browsers etc. I have a map with a single country highlighted, however, the scale of the (world) map is such that I want zoom in after the map is loaded on the country in question. Looking at the API I feel certain this is possible. There is an event listener, such that I can execute custom functions on load. As illustrated with this example, where a series is added on load (Js fiddle) Additionally there is a method

Is multiple level Highchart Drilldown possible in adjacent charts?

笑着哭i 提交于 2019-12-22 09:59:18
问题 I am a newbie in highchart. I have few queries in drilldown. In drilldown same chart gets replaced. Can we give particular space for drilled new chart (if I say new div)? How can I add more levels of drilldown in different chart ? By default if you have more series in the legend, clicking on one of them will add/remove that series. Can we make the series still visible a append a new chart ? 回答1: have a look at http://jsfiddle.net/6LXVQ/97/ for a 3 level example series: [{ id: 'toplevel', name

Highcharts: change line options mid-way through a line

早过忘川 提交于 2019-12-22 09:50:53
问题 I'm looking for a way to change the appearance of a segment of a line in Highcharts. I have concrete data and forecast data within the same series. I need to visually differentiate the part of the line that shows the forecast data. I have found that I can turn off the marker for the forecast data points. This seems a little too subtle. I'd like something that stands out better. I have considered using a custom graphic for the marker symbol. I don't think that would give a clear indication

Resize highcharts using react-grid-layout not working

走远了吗. 提交于 2019-12-22 09:49:28
问题 I am working in react and using highcharts with react-grid-layout to resize the elements in div. Somehow resizable feature is working for images but not with highchart. Grid.js is a file that makes ResponsiveReactGridLayout and it gets the highchart from chart.js file. Please find the code below. //Grid.js import React, { Component } from 'react'; import {Responsive, WidthProvider,ReactGridLayout} from 'react-grid-layout'; import Charts from './charts.js'; const ResponsiveReactGridLayout =

Pass a List of Series to SetSeries

…衆ロ難τιáo~ 提交于 2019-12-22 08:43:51
问题 I am using DotNet.Highcharts in conjunction with Visual Studio 2010. I have created an array of Series: List<Series> allSeries = new List<Series>(); I then looped through a database and added several different Series. Then I created a Highchart and need to add the allSeries list to it. I have the code below that I used to create a Series one at a time. How can I take the allSeries list and pass it to SetSeries? .SetSeries(new[] { new Series { Name = "Combiner 2", Data = new Data(myData2) },

Highcharts bubble chart dataLabels overlapping

萝らか妹 提交于 2019-12-22 08:38:48
问题 As shown in the picture (which is not the same code as the fiddle, but exhibits the problem), with Highcharts new bubble charts it seems like dataLabels like to sit on top of each other. Is there an easy workaround for this? I'd be happy to manually change the z-index on a per label basis, but this doesn't seem to work for bubble charts. Here's some sample code that fails to work as expected (try it in a fiddle): series: [{ data: [{ x: 99, y: 36, z: 50 }, { x: 99, y: 74, z: 55, dataLabels: {

Grand Totals in HighCharts Pie Chart Legend

自古美人都是妖i 提交于 2019-12-22 08:38:20
问题 Is there a way for me to get a grand total at the end of my value column in my legend? Here is the code for my legend right here as well as the fiddle wtih it broken into two columns for the name and value of the data[] set. legend: { enabled: true, layout: 'vertical', align: 'right', width: 220, verticalAlign: 'top', borderWidth: 0, useHTML: true, labelFormatter: function() { return '<div style="width:200px"><span style="float:left">' + this.name + '</span><span style="float:right">' + this

Highchart js max 15 plots to be plotted

99封情书 提交于 2019-12-22 08:37:22
问题 I have been trying a lot in Highchart js and still cant find a way to reduce the number of elements in the series. If i get more than 15 days data i have to reduce it back and show to user as 15 days data so that user can see the data without crowding of data. Max 90 days will be given in the series which i have to reduce to 15 days. check my current code here in http://jsfiddle.net/MULZL/ can any one give me a solution for it ? P.S: I dont want to reduce it to first 15 days or last 15 days.

How to change style of selected point in highcharts?

白昼怎懂夜的黑 提交于 2019-12-22 08:23:43
问题 I want to change style of selected points. When i select point it is gray. I want all my selected point to be red. 回答1: You set the style for the markers.state.select as: plotOptions: { series: { allowPointSelect: true, marker: { states: { select: { fillColor: 'red', lineWidth: 0 } } } } } Example: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-marker-states-select-fillcolor/ Reference: http://www.highcharts.com/ref/