I'm looking at using HighCharts for a webpage, specifically:
http://www.highcharts.com/demo/column-basic/dark-green
However, the font sizes are too small. I've tried adding:
legend: {
itemStyle: {
color: '#000000',
fontWeight: 'bold',
fontSize: '15px'
}
to my js file that the site provided but this doesn't result in a font size change. Additionally I would also like to increase the size of the key (where it states Tokyo, New York, London, Berlin). This is my first time using Highcharts and I've been doing research for a couple hours now and I can't seem to find the answer. Any help would be much appreciated!
Re: Changing Font There is no one place you can change the fonts for all text, instead change options. title. style. font, options.
The legend displays the series in a chart with a predefined symbol and the name of the series. Series can be disabled and enabled from the legend.
With this function, you can define additional font families to use in your R base graphic plots. The default font families are 'sans', 'serif' and 'mono'.
For legend font size, your code is working perfect. Here is working demo.
and for X-axis and Y-axis,put the font size in (x-Axis/y-Axis)->labels->style object: Here is the sample :
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
labels: {
style: {
color: 'red',
fontSize:'15px'
}
}
},
Demo :http://jsfiddle.net/4VznG/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With