-
Notifications
You must be signed in to change notification settings - Fork 954
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
Problem: Uncaught TypeError: Cannot read property 'yAccessor' of undefined #9
Comments
yes there is a breaking change in http://rrag.github.io/react-stockcharts/documentation.html#/change_log To make your example work you will have to
https://gist.github.com/rrag/b13b739458e65ff93f4a#file-candlestickchart-jsx is an updated working example |
I updated my code from the updated example and I am still receiving the same error. <ChartCanvas width={this.state.width} height={400}
margin={{left: 35, right: 50, top:10, bottom: 30}}
data={candles} type={type}>
<Chart id={1} xAccessor={(d) => d.date}>
<XAxis axisAt="bottom" orient="bottom" ticks={6}/>
<YAxis axisAt="left" orient="left" ticks={5}/>
<DataSeries id={0} yAccessor={CandlestickSeries.yAccessor}>
<CandlestickSeries />
</DataSeries>
</Chart>
</ChartCanvas> |
I am not able to replicate the problem in both plunker and also on a npm based build. I added a test to https://github.com/rrag/react-stockcharts-examples try this
open If you still have problems please show that in plunker or share the repo |
I did a bit of debugging and the issue I was running into was react-stockcharts installs a different version of react than my app was using. |
feat: position ohlctooltip subheaders
…background-position feat: change regression and equidistants background position
A runtime error happens when I try to load the following code that worked in 0.1.6
The text was updated successfully, but these errors were encountered: