-
Notifications
You must be signed in to change notification settings - Fork 95
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
Can't seem to find a way to use an auto scale axis #17
Comments
I'm having this issue, too. Specifically, I am doing the following: return (
<ChartistGraph data={chartData}
options={{
axisX: {
type: Chartist.AutoScaleAxis,
onlyInteger: false
}
}}
type={'Line'} />
); This is in line with the examples in the documentation. |
Same issue here. Is this being maintained? |
I am setting the scale with this shortcut with array being the series values, if you have two series |
This package is not a wrapper around the original import React from 'react'
import Chartist from 'chartist'
import ChartistGraph from 'react-chartist'
function MyChart(props) {
return (
<ChartistGraph
type='Line'
data={props.data}
options={{
axisX: {
type: Chartist.AutoScaleAxis,
onlyInteger: true
}
}}
/>
)
} |
I looked at the API docs for regular version of chartist, and the method of selecting an autoscale x axis doesn't appear to be available in the wrapper. Inspecting the source code, it seems that a chart is created by default with a numeric y axis and a stepped x axis, with no means of overriding that.
Am I missing something here? If not, at there plans to expose the different axis types via the react wrapper?
The text was updated successfully, but these errors were encountered: