Is there a way to disable an attribute by default when the chart is initialized at first?

Hello, 
        I have two queries -
             1. I have a chart with four attributes R,Y, B and Total. Syncfusion charts have a feature that when clicked on specific legend the respective attribute is hidden from                     the chart. So is there a way that the 'Total' attribute would be in the disabled/hidden state when the chart is initialized and then afterwards the user can enable it                       by clicking if he wants to.
             2. I am showing data of each day on a separate chart which the user can navigate to using a next/previous button. I mentioned earlier that I have four attributes in                       my chart. So sometimes the user disables/hides attribute 'R' and then goes to the next day by clicking on the next button. So I wanted to carry forward this                               disabled attribute selection to the next chart. Is there a way to do that?

Thanks,
Ryan D'Mello

3 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team November 4, 2020 12:51 PM UTC

Hi Ryan, 

We have validated your reported scenarios. Please check with below options. 

Query 1 : is there a way that the 'Total' attribute would be in the disabled/hidden state when the chart is initialized and then afterwards the user can enable it by clicking if he wants to 

Yes, you can specify series visible property as false. This will render the legend but series won’t visible and you can display series by clicking the legend. 

Query 2 : the user disables/hides attribute 'R' and then goes to the next day by clicking on the next button 

Yes, you can disable the legend of first chart and then navigate to other charts. We have created sample using tab control with four charts and each chart has a single series. The data provided for each series is in hour and minutes difference. We have attached sample for your reference. 


Kindly revert us, if you have any concerns. 

Regards, 
Durga G 


Marked as answer

RY Ryan November 16, 2020 11:59 AM UTC

Hello,
         My first query is solved, thank you very much for that. About my second query I assume there was some miscommunication, anyways solving the first one I was able to solve the second one on my own. Thank you for your valuable time.

Thank you,
Ryan D'Mello


DG Durga Gopalakrishnan Syncfusion Team November 17, 2020 07:06 AM UTC

Hi Ryan, 
  
Thanks for an update. Please get back to us, if you need any further assistance. 
  
Regards, 
Durga G 


Loader.
Up arrow icon