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

chartist in options not defined #11

Open
devJoshLopez opened this issue Dec 31, 2019 · 1 comment
Open

chartist in options not defined #11

devJoshLopez opened this issue Dec 31, 2019 · 1 comment

Comments

@devJoshLopez
Copy link

hey im trying to use Chartist in my options like the documentation says on their website but im getting chartist is not defined. What am I missing?

axisX: {
        type: Chartist.FixedScaleAxis,
}
@riv0tril
Copy link

riv0tril commented Feb 5, 2020

The problem is that the component does not expose FixedScaleAxis constant,you are just importing the component, a workarround for this is importing chartist and use the constant instead

ie:
import VueChartist from 'v-chartist'
import * as c from 'chartist'

....
lineOptions: {
    axisX: {
    type: c.FixedScaleAxis,
    ....other props....
    },
},
....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants