I'm afraid that's still not what I mean.
Please see the attached image. This is what I'm trying to achieve. I can already generate multiple axis, that's not the problem. I want MULTIPLE charts in one control. If it is possible.
Stephen
multiple_charts_5821a14c.jpg
Hi Stephen,
We have analyzed your reported query.
We are not clear with your requirement weather to display multiple charts in a single page or multiple axes in a single chart. Also share some details regarding this query. This will help us to provide the exact sample based on your requirement.
And also we have provide the solution for both the approached and attached it below
Solution-1:
If you want to display multiple charts graphs in single page, you have to specify two div elements separately in sample, because chart controls are rendered in separate div elements. The code snippet is given below,
Code Snippet:
[JS]
<div id="container"></div>
$("#container").ejChart(
{
……………………………….
series:
[
{
points: [{ x: 1, y: 10 }, { x: 3, y: 25 }, { x: 5, y: 15 },
{ x: 7, y: 30 }, { x: 9, y: 28 }],
type:"line",
}
],
……………………………………
})
<div id="container1"></div>
$("#container1").ejChart(
{
……………………………………..
series:
[
{
points: [{ x: 1, y: 100 }, { x: 3, y: 300 }, { x: 5, y: 55 },
{ x: 7, y: 200 }, { x: 9, y: 320 }
],
type: "column"
}
],
…………………………………………….
});
Solution-2:
Here the chart is rendered with multiple axes using rowIndex property in axes.
The code snippet is given below;
Code Snippet:
[JS]
$("#container").ejChart(
{
………………………..
rowDefinitions:
[
{
rowHeight: 50,
lineColor: "#A8A8A8",
lineWidth: 1,
unit: 'percentage'
}
],
axes:
[
{
rowIndex: "1",
}
],
…………………………….
});
We have prepared a sample based on your query and you can find the sample in below location
Sample-1: http://www.syncfusion.com/downloads/support/forum/82534/Multiple_Div-1449112072.zip
Sample-2: http://www.syncfusion.com/downloads/support/forum/82534/multipleAxesarea-1516961264.zip
Thanks,
Praveenkumar
Hi Paul,
Your requirements have been achieved. Syncfusion ejChart easily customized by multiple series in single chart. Multiple series configuration depends on Axis. Multiple series can be created by following ways:
1. PrimaryX/PrimaryY Axis.
2. Secondary Axes collections.
3. ColumnDefinition/RowDefinition.
Based on your reported query we found that you are using first scenario. We have prepared a sample based on that.
Screenshot of the attached sample:
In the above figure three series types like column, column, line depends on PrimaryX/PrimarY Axis.
Limitations:
· Other types of series cannot be combined into “bar” series. It always single or combine same type itself.
· Accumulation series types cannot be combined [Pie, Pyramid, Funnel, and Doughnut] into other type of series. Because these type of series not depends on Axes collections.
Please find the below sample. It can be downloading from the following sample link.
Kindly refer the online documentation links for more details of Chart series types.
http://helpjs.syncfusion.com/js/chart/chart-types
http://helpjs.syncfusion.com/js/chart/axis
Please let us know if you have any queries.
Thanks,
Vinothkumar Arumugam.