Hi Muhammad,
Greetings from syncfusion.
Please find the chart related query response.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Query #1: The numbers on x and y axis are light grey and small. I need to change the color, font size and make it bold?
We have analyzed your query. From that, we would like to let you know that we can customize the x and y axis labels using “labelStyle” property of the chart Axis. Please find the below code snippet and sample for reference.
Code Snippet:
primaryXAxis: {
labelStyle: { size: "15", color: "Red", fontWeight: "Bold" },
},
primaryYAxis: {
labelStyle: { size: "15", color: "Blue", fontWeight: "Bold" }
}, |
Screenshot:
Query #2: The legend is also small and light grey. I need to change the color, font size and make it bold?
We have analyzed your query. From that, we can customize the legend shape using “shapeWidth” and “shapeHeight” property in legendSettings. And also we can customize the legend text using “textStyle” property in legendSettings. Please find the below code snippet and sample for reference.
Code Snippet:
legendSettings: {
shapeWidth: 20,
shapeHeight: 15,
textStyle: { size: "15", color: "Green" }
}, |
Screenshot:
Query #3: The line at y=0, meaning the x axis, needs to be dark black while the other lines in the graph can remain gray?
We have analyzed your query. From that, we can achieve your requirement using “lineStyle” property in primaryXAxis. Similarly, we could also customize the y axis line using “lineStyle” property in primaryYAxis. Please find the below code snippet and sample for reference.
Code Snippet:
primaryXAxis: {
lineStyle: { color: "Black" }
} |
Screenshot:
To know more information about the chart. Please refer our UG link shown below
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Let me know if you need further assistance.
Regards,
Srihari.