I know I can plot horizontal lines on yAxis using plotLines, but how about vertical lines on xAxis?
Thanks!
In the same way as in the yAxis, you need to use plotLines
http://api.highcharts.com/highcharts#xAxis.plotLines
Highstock: http://jsfiddle.net/kZkWZ/
value: Date.UTC(2011,3,1),
Value should be js timestamp, because xAxis has datetime type.
Related
My doughnut chart has overlapped labels and it is unreadable. How to make the labels readable by moving them? Is there a property to set?
You can fix this by enabling legend like this,
var dougnutChartStyles = (ExcelPieChartSerie)doughnutSeries;
dougnutChartStyles.DataLabel.ShowCategory = false;
and
var excelDoughnut = worksheet.Drawings.AddChart("pieChart", eChartType.Pie3D);
excelDoughnut.Legend.Position = eLegendPosition.Right;
So, labels will display as legends, not in the chart itself.
I succesfully changed the color of my bar chart by using this command:
marker = list(color = 'rgb(214, 39, 40)'))
But when I do this for a line chart, it only changes the color of the dots instead of the whole line. How can I do that?
Using rCharts wrapper for High Charts, how would I plot different charts onto the same graph? In other words, I would essentially want one chart, let's call it h1, to be its own chart with its own x-axis and y-axis and another chart h2 to have its own x-axis and y-axis, but I would like to be able to return some final chart, say h3, that stacks h1 and h2 into one object that I can return with my plotting function. Is this possible? I don't have an example because I don't have an understanding of how to really approach this problem right now. Thank you.
I don't know anything about the rCharts side of it.
But to do this in Highcharts, you can specify multiple y axes, specifying a top an height property, and multiple x axes, using the offset property.
Then you assign an xAxis and a yAxis for each data set.
xAxis: [{
offset : -120
},{
}],
yAxis: [{
title : { text: 'Y Axis 0' },
height : 100
},{
title : { text: 'Y Axis 1' },
offset : 0,
top : 200,
height : 100
}]
Example:
http://jsfiddle.net/jlbriggs/nq6fphn8/
I'm drawing a line chart with javafx categoryaxis. e.g. I have 100 points on the plot. As such, all of my tick labels are squished together, resulting in 100 bunched-up ellipses. All I want to do is render every tenth label. I've looked through the documentation but there doesn't seem to be any way to turn individual tick labels visible or invisible, or how to change the setting of the tick unit on a CategoryAxis.
or I have to redraw xAxis?
just got an idea, add number of invisible char into the categoryaxis, so that each xaxis is still 'unique'
if (i%5 == 0)
str = DateFormat.getDateInstance(DateFormat.DEFAULT).format(date);
else {
str = invisible;
invisible += (char)29;
}
I see that when a Box crosses max and min limit on the Y-axis the box bleeds outside the chart area. Is there a solution/Tweak for this?
Are you setting the Min and Max values yourself or letting the control decide? Try setting them to auto.
chart1.ChartAreas[0].AxisY.Maximum = double.NaN;
chart1.ChartAreas[0].AxisY.Minimum = double.NaN;
Try the following:
chart1.ChartAreas[0].AxisY.Crossing = 0;
chart1.ChartAreas[0].AxisX.Crossing = 0;