Comments (4)
yes there is a breaking change in 0.2
http://rrag.github.io/react-stockcharts/documentation.html#/change_log
To make your example work you will have to
- move the
xAccessor
fromDataSeries
toChart
- add
id={0}
toDataSeries
https://gist.github.com/rrag/b13b739458e65ff93f4a#file-candlestickchart-jsx is an updated working example
from react-stockcharts.
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>
from react-stockcharts.
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
git clone https://github.com/rrag/react-stockcharts-examples.git
cd react-stockcharts-examples
npm install
npm run serve:test:webpack
open src/index.js
and update to see the changes reflect on the browser.
If you still have problems please show that in plunker or share the repo
from react-stockcharts.
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.
from react-stockcharts.
Related Issues (20)
- Is there a fork where PR's are being pushed / being maintained ? HOT 1
- Сlipped chart when zoomed maximum or shifted with onPan event
- Error: Cannot find module 'D:\charts\node_modules\@react-financial-charts\annotations\lib\Annotate' imported from D:\charts\node_modules\@react-financial-charts\annotations\lib\index.js HOT 5
- How can I display an indicator using datafeed api.. (for example - Open Interest)
- how to load every time next 3 months data when we reach to the last candle on drag
- How to change displayed format for X axis? HOT 1
- Is it possible to set x Axis to certain date? HOT 2
- What stock charting lib are you using in 2022? HOT 2
- Is it possible to use grouped and stacked bar in one chart HOT 1
- compatibility with next.js -- a lot of warnings and errors HOT 3
- Drawing data-based trendlines on a Candlestick Chart HOT 1
- Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. HOT 3
- Conflict with react^18 HOT 6
- How to add second yAxis? Didn't find anything across docs and internet
- How to show equal interval of ticks with equal spacing in between ticks in x-axis?
- Panning issue in a multi series chart HOT 2
- How to create kdj in chart? HOT 1
- InteractiveYCordinates disappears on mouse enter and mouse click events
- Dependency error during installation HOT 7
- npm ERR! peer react@"^15.0.0 || ^16.0.0" from [email protected] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-stockcharts.