Remove   from the chart

Answered
Renier Lewis asked on January 20, 2022

We need help regarding how to remove or replace   in the caption of rows of the chart.
Is there any option to replace or remove   in chart?

 
We have tried with "customizeChartElement" function callback, but how can we update data after removing   from that function.

Note: We have used flexmonster version 2.9.16

 

Please see below-listed points with Screenshots: 

 

1. Please see screenshot_1 which is what result we need

https://prnt.sc/26g5su1
2. Please see screenshot_2 there is a column with name "INSTRUMENT CATEGORY" and there was a list of values under this column but the first value is "360" and it is number format. Data in the column "INSTRUMENT CATEGORY" display properly in csv file but in flexmonster it will remove the rest of the string data in the column because we think it will consider data type of first number value like "360".

https://prnt.sc/26g5td8
3. To overcome that issue we have added   after that column value like "360 " and it is fixed as per screenshot_1 and there is display all the data like "360", "Ability" etc under column "INSTRUMENT CATEGORY".

4. Now We have implemented "Chart" please see screenshot_3.
https://prnt.sc/26g5u57

5. But we face an issue in the chart like there is a display " " so we need to remove or replace that  

 
Many thanks
Renier

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster January 20, 2022

Hi, Renier!
 
Thank you for providing such a detailed description of your issue.
 
In Flexmonster, you can define the data types via mapping. The MappingObject is a property of DataSourceObject, where you can define how fields contained in the data source are treated. Instead of appending a " " character, we recommend setting "type": "string" for the "Instrument Category" column in the mapping property as an alternative solution.
 
Please refer to this example of mapping usage:
https://jsfiddle.net/flexmonster/2awcjnr6/
 
Also, we would like to mention that mapping possibilities are beyond the type definition. Please refer to this doc for more information:
https://www.flexmonster.com/doc/mapping/
 
Please get in touch with us if further assistance is needed.
 
Best Regards,
Maksym

Please login or Register to Submit Answer