Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145349 | Jun 18,2019 11:23 AM UTC | Jun 24,2019 09:05 AM UTC | JavaScript - EJ 2 | 4 |
![]() |
Tags: PivotView |
var pivotGridObj = new ej.pivotview.PivotView({
displayOption: { view: "Chart" },
chartSeriesCreated: (args) => {
for (var pos = 0; pos < args.series.length; pos++) {
if (pos % 2 == 0) {
args.series[pos].type = 'Line';
}
}
},
chartSettings: {
title: "Sales Analysis",
chartSeries: { type: "Column" },
}
});
pivotGridObj.appendTo("#PivotView");
|
|
Query |
Comments |
1. |
First of all, Thanks for the help. Dinesh, the code you shared with its not working. I am using toolbar in syncfusion. Whenever I changed the chart type dropdown it shows online chart type of line. I am sharing the two screenshots with you. Please look into this. |
In the sample, we have applied ‘Line’ chart type for two series. And, we suspect that, Column series are hidden due to large data. You can check this problem with using scroll/ zoom options in pivot chart. Please refer the following screenshot.
|
2. |
I have one query. When I set one chart type is "Line" and another is "Bar" then in pivotchart two chart of line type is visible. Can you please tell me it’s a bug or default behavior of plugin? I have attached the screenshot. Please look into this and help me on my query. |
You cannot combine Bar/Polar chart to other chart types. It’ is the default behavior of the chart. |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.