Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't axisOptions work? #52

Open
PichenNew opened this issue Jan 12, 2022 · 4 comments
Open

Why doesn't axisOptions work? #52

PichenNew opened this issue Jan 12, 2022 · 4 comments
Labels
Status: More info needed More information is required before this can be worked on Type: Bug Issue / bug

Comments

@PichenNew
Copy link

PichenNew commented Jan 12, 2022

<script> import Chart from "svelte-frappe-charts"; let data = { labels: ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"], datasets: [ { values: [10, 12, 3, 9, 8, 15, 9], }, ], }; let axisOptions = { xIsSeries: true, // default: false }; let lineOptions = { hideDots: 1, // default: 0 spline: 1, }; </script>

<Chart {data} type="line" colors={["red"]} axisOptions={axisOptions} lineOptions={lineOptions} />``

@PichenNew
Copy link
Author

chartRef.addDataPoint("Wed", [insertdata], num);
How can i add points without label?

@himynameisdave himynameisdave added Status: More info needed More information is required before this can be worked on Type: Bug Issue / bug labels Mar 10, 2022
@ARYX01
Copy link

ARYX01 commented Sep 21, 2022

Bump, same issue.
On a basic line chart with 1dataset with 100values and no labes, when adding axisOptions to it isn't working

@pietz
Copy link

pietz commented Nov 29, 2022

same here. xIsSeries doesn't change anything

@DaleCam
Copy link

DaleCam commented Feb 7, 2023

same here. xIsSeries doesn't change anything

This combination worked for me:
let axisOptions = { xIsSeries: 1, xAxisMode: 'tick', };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: More info needed More information is required before this can be worked on Type: Bug Issue / bug
Projects
None yet
Development

No branches or pull requests

5 participants