Add Series with multiple axis

Hi i

I’m using the sample code in the link below to add/remove series. Works great but how do I add multiple axes in this case? I’ve tried adding YAxisName but that gives an error. Any sample code would be appreciated.

 https://blazor.syncfusion.com/documentation/chart/how-to/add-remove/


/Stefan


14 Replies

DG Durga Gopalakrishnan Syncfusion Team April 16, 2020 03:46 AM UTC

Hi Stefan, 

Greetings from Syncfusion. 

We have analysed your query. We are having a demo for including multiple axis in chart. Please check with the below link. 

Demo Link 

UG Link 

Please revert us, if you have any concerns. 

Regards, 
Durga G 



ST Stefan April 21, 2020 08:47 AM UTC

Hi again,

How do you dynamically add a chart axis? I've tried the following but I get "Object reference not set to an instance of an object" on the yellow marked line. 
Do you have a sample of this? 

Regards,

Stefan




DG Durga Gopalakrishnan Syncfusion Team April 22, 2020 02:44 PM UTC

Hi Stefan, 

We are validating your reported scenario. We will update the status within one business day(23rd April, 2020). We appreciate your patience until then. 

Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team April 23, 2020 02:06 PM UTC

Hi Stefan, 

We have validated your reported scenario. Currently, we are facing problem in adding axis collection using chart instance. We suggest you add axes using property binding. We have prepared sample for your reference. Please check with the below code snippet and sample. 
 
Code Snippet 
 
<SfChart Axes="@axes"> 
</SfChart> 
@code{ 
    List<ChartAxis> axes = new List<ChartAxis> { 
        new ChartAxis{ Name = "yAxis1" }, 
        new ChartAxis{ Name = "yAxis2", OpposedPosition = true  } 
    }; 
} 
 
Screenshot 
 
 
Sample 
 
Kindly revert us, if you have any concerns. 
 
Regards, 
Durga G 



DP Damian Pozimski August 11, 2020 04:41 PM UTC

Hi,
I have the same issue as Stefan.
In my case AddSeries method works but when I try to add additional axis after click on specific series I am not able to add & render it.

I tried to reference by binding Axes collection however adding a new items to it won't update the view too.


DG Durga Gopalakrishnan Syncfusion Team August 12, 2020 05:05 PM UTC

Hi Damian, 
 
We are validating your reported scenario. We will update the status within one business day(13th August,2020). We appreciate your patience until then. 
 
Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team August 13, 2020 03:54 PM UTC

Hi Damian, 

We have validated your reported scenario. We have considered this as a bug and logged a defect report. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 25th August, 2020. We appreciate your patience until then. You can keep track of the bug from the feedback portal below.  
  
  
The provided feedback link is private, and you need to login to view this feedback. 
  
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 

Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team August 26, 2020 03:13 PM UTC

Hi Stefan, 

We are working on reported issue. Since considering issue complexity, we will provide fix for this in our upcoming Volume 3 Main Release, which is expected to be rolled out at end of September,2020. We appreciate your patience until then. 

Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team October 28, 2020 07:17 AM UTC

Hi Stefan, 
  
We will include fix for reported issue in our upcoming volume 4 main release which is expected to be rolled at end of December, 2020. We appreciate your patience until then. 
  
Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team December 21, 2020 01:18 PM UTC

Hi Damian,

We are glad to announce that our Essential Studio 2020 Volume 4 release v18.4.0.30 is rolled out and is available for download under the following link.



We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Durga G



ST Stefan December 29, 2020 10:41 AM UTC

Hi again.

The Blazor sample provided in the following link does not work


Nothing happens when clicking on "Add Axis".
I updated the sample to the latest Syncfusion package and get the following error. See attached image




SM Srihari Muthukaruppan Syncfusion Team December 30, 2020 05:10 PM UTC

Hi Stefan, 
 
Sorry for the inconvenience. 
 
We have analysed your query. Based on your requirement we have prepared a sample for your reference to dynamically add axis along with the series in the chart. Please find the sample below. 
 
 
Let us know if you have any concerns. 
 
Regards, 
Srihari M 



ST Stefan January 11, 2021 09:28 AM UTC

Hi again,

Setting Maximum and Minimum values on the axis does not work.

Adding DataSource to Chartseries does not work. The original data source is used not y1 as specified.

See yellow marked in attached image.

Regards,

Stefan 






DG Durga Gopalakrishnan Syncfusion Team January 13, 2021 02:50 PM UTC

Hi Stefan,

We have validated your reported scenario with specified code snippet. We have modified sample as per your requirement and attached for your reference.


Please revert us if you are still facing the problem.

Regards,
Durga G


Loader.
Up arrow icon