Financial Chart when extremely zoomed in shows unnecessary time value in X Axis #12482
-
DescriptionIn any financial chart component, when we zoom in extremely it starts showing the time attribute. I have recreated the issue using chart on documentation We want to completely remove the time from X-Axis. The issue also appears when the data we provide to the charts has fewer data points. For example, data having value for 2 days. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi @KaushikEDS, I am not sure if I understand what the issue is. It is expected to see the labels, no matter how much zoom is applied to the chart. In case you want to hide the labels, set the <igx-category-chart
[dataSource]="data"
xAxisLabelVisibility="collapsed">
</igx-category-chart> |
Beta Was this translation helpful? Give feedback.
-
@hanastasov we do want to see labels on X-axis. It's weird to show any time on X-axis when it's completely date-based. |
Beta Was this translation helpful? Give feedback.
-
It is showing a datetime when it should be showing a date! |
Beta Was this translation helpful? Give feedback.
-
Hi @KaushikEDS , Use the xAxisFormatLabel property to customize the text of the x-axis label: <igx-category-chart
[dataSource]="data"
[xAxisFormatLabel]="formatX"
xAxisExtent="250">
</igx-category-chart> public formatX(item: any): string {
return item.toDateString();
} |
Beta Was this translation helpful? Give feedback.
-
There has been no recent activity and this issue has been marked inactive. |
Beta Was this translation helpful? Give feedback.
Hi @KaushikEDS ,
Use the xAxisFormatLabel property to customize the text of the x-axis label: