We are using the packed bubble chart but we are using the size AND color to represent the same data dimension (e.g. money each person has)
Functionally, the color is on a gradient from low to high. And now we would like to add in a legend kindof like what you have on a heat map (https://www.highcharts.com/demo/heatmap) where you can see the low color/value with a gradient to the high color/value. Your demo on the heatmap even has a sympathetic highlight between the cell and the legend... that would be cool to bring over. Hell, it would be super cool to even use the legend to filter or refine the circles!
Anyway. The core of the quesiton is, how can we bring that heatmap style legend into the packed bubble chart? Not the bubble size, but representing the color
You need to use color axis. It is a separate module, but it is also build-in in heatmap and map.
Highcharts.chart('container', {
colorAxis: {
...
},
...
});
Live demo: https://jsfiddle.net/BlackLabel/smo3nfzj/
API Reference: https://api.highcharts.com/highcharts/colorAxis
Related
I am using highchart in my project But i don't know how to give gradient color to x-axis crosshair
You can create a plot band using Axis.addPlotBand() function on mouseOver and remove it on mouseOut with Axis.removePlotBand(). To apply gradient, use linearGradient along with stops. Take a look at the example below.
API Reference:
http://api.highcharts.com/highcharts/Axis.addPlotBand
http://api.highcharts.com/highcharts/Axis.removePlotBand
DOCS Reference:
https://www.highcharts.com/docs/chart-design-and-style/colors
Example:
http://jsfiddle.net/36comwzL/
I opened the basic column chart using Highcharts and now I need to make little customization. I would like to change the color of the plot band that is visible when I place the mouse pointer within one category on X axis. I tried to use the xAxis -> plotBand option, but it only changes the color with specific start and end values. How could I change this color on mouseover?
This is some example, how I would like it to look: https://www.dropbox.com/s/ilxhd99xo8pwn7v/Zrzut%20ekranu%202015-09-05%2020.20.17.png?dl=0
I am helping my organization put together some Pie and Donut charts using Highcharts, and some of our charts will have zero value points. Normal behavior is to not render these points out, but that leaves us with an empty chart.
So, is there a way to set a "background" circle for the Donut chart so that if all values are zero, the user still sees a gray donut (indicating "0" values)?
I don't want to use something like a background image because then it may not adjust responsively in a proper manner. Plus, we'd like the parameters of the circle to be adjustable just like other data elements in Highcharts.
Thanks for any and all advice!
With Highcharts 3.0 it is possible to create charts with type 'bubble', whereas prior to 3.0 it was necessary to use a 'scatter' chart and modify marker size to make bubble charts. The nice thing about the old way is you had complete control over the visible pixel radius of each bubble--the new bubble charts automatically resize the bubbles so they are sized relative to each other. Is there any way to turn off this behavior or set bubble radius manually?
I am having a hard time seeing how a bubble chart, where the bubbles are not sized relative to each other, would be of any use.
You should be able to use the minSize and maxSize options, however, to control them the way that you need to:
bubble: {
minSize:2,
maxSize:50
}
{{edit:
I don't see them in the docs either, actually. But you can see an example here: http://jsfiddle.net/fXzke/13/ use either number as pixel value, or string with percent of chart height
}}
I found that adding an "empty" bubble to the series helps keep the size of all bubbles in the chart relative to each other:
name: '',
data: [{x:0,y:0,z:0}],
showInLegend: false,
color: 'transparent',
enableMouseTracking: false
Here's a sample on JSFiddle: http://jsfiddle.net/9bebT/2/. The legend, color, and mouse tracking variables each help keep the item in the series but otherwise invisible to the user. If you simply remove the empty bubble or set its visibility to "false," the chart doesn't register the empty bubble's z axis (diameter) as the minSize.
Using highcharts, how would I put a default grey bar under my column charts, for example, like this?
And how would I do something similar for a pie chart (if my data takes up 30% of the chart, show the remaining 70% as light grey or something similar to denote unused space of the pie chart)
For the Pie chart there has been a bit of a back and forth in the highcharts forums. What I would do is get all of your data you need to plot and find out what percentage of the total all of that data is. Then, with the remaining percentage create another data point and set its color to grey.
But you really have to consider what is the total percentage means - without further detail I cannot begin to guess.
As for the first question about "default grey bar under my column charts" it is not clear from that link what you mean. I do not really see what you mean with the charts I have looked at.