GithubHelp home page GithubHelp logo

Comments (4)

rrag avatar rrag commented on May 20, 2024

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

  1. move the xAccessor from DataSeries to Chart
  2. add id={0} to DataSeries

https://gist.github.com/rrag/b13b739458e65ff93f4a#file-candlestickchart-jsx is an updated working example

from react-stockcharts.

trevorbernard avatar trevorbernard commented on May 20, 2024

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.

rrag avatar rrag commented on May 20, 2024

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 http://localhost:8090/

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.

trevorbernard avatar trevorbernard commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.