Skip to content

Financial Chart when extremely zoomed in shows unnecessary time value in X Axis #12482

Answered by hanastasov
KaushikEDS asked this question in Q&A
Discussion options

You must be logged in to vote

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();
    }

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kacheshmarova
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #12147 on January 04, 2023 10:28.