Skip to content

Customising xlabels on charts #103

@accforgithubtest

Description

@accforgithubtest

When trying to display a line chart with time-series data (about 200 days, one record per day), The chart is rendered as below.
Is there any way to customize the label on the x-axis to display only the date and month as label (detailed timestamp is displayed on hover anyways).

I reduced the clutter by specifing a low value for "xticks", that has reduced the clutter by not displaying the timestamp label for each day. However it would be nice to be able to do some kind of formatting to make the timestamp labels on x look nicer.

image

Any formatting I can do to the timestamps would result in messing with actual data. / graph not being displayed

While looking at the documentation, i see a Row-level parameters option "label", to which I tried passing date_format(timestamp, '%d %b'), but that doesnt work. It looks like the label is just another name for X - which I am not sure how to use it.

Is there a way to specify the time series column as the x values, and another formatted column ( for example date_format(timestamp, '%d %b') ) as the x label ? Am I thinking in the correct direction ?

Any suggestions is appreciated. Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions