Code Monkey home page Code Monkey logo

formidable-charts's Introduction

formidable-charts

Ready-made composed Victory Components!


demo

Getting Started

formidable-charts is a set of composed, pre-styled Victory components that can be used to display rich, interactive charts. Our theming system not only supports style based theming, but behavioral/compositional theming as well.

  1. Add formidable-charts to your project

    npm install formidable-charts --save

For React Native, you'll need -native and react-native-svg:

npm install -native formidable-charts react-native-svg --save
react-native link react-native-svg
  1. Add your first formidable-charts component:

    import React, { Component } from 'react';
    import { render } from 'react-dom';
    import { LineChart } from 'formidable-charts';
    
    class MyLineChart extends Component {
     render() {
       return (
         <LineChart />
       );
     }
    }
    
    render(<MyLineChart />, document.getElementById('app'));
  2. Explore the API and try out the various possible components and configurations and their themes!

Development

# Run the demo app server
$ npm start

# Open the demo app
$ open http://localhost:3000

# Run tests
$ npm test

For more on the development environment, see DEVELOPMENT in the project builder archetype.

Contributing

Please review our Code of Conduct before contributing.

For a detailed contribution guide, please see CONTRIBUTING in the project builder archetype.

IMPORTANT

This project is in a pre-release state. We're hard at work fixing bugs and improving the API. Be prepared for breaking changes!

formidable-charts's People

Contributors

ebrillhart avatar jevakallio avatar kenwheeler avatar paulathevalley avatar ryan-roemer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

formidable-charts's Issues

Performance Issue

Hi. I'm using BarChart and notice the node process is using 400% of my CPU. When I logged out some values while setting the labels prop I notice it's constantly updating. Are there elements of the charts that constantly redraw? Is this expected behavior?

Thanks

`
<BarChart

        horizontal
        responsive={false}
        domainPadding={24}
        height={200}
        data={[
          { x: "4/16", y: 60},
          { x: "12/16", y: 76 }
        ]}
        labels={ (datum) => { console.log(datum); return datum.y }}
        xAxis={{ label: "Score Total", tickValues:[15,30,45,60,75,90] }}
        style={{
          data: { width: 24 },
          labels: { fontSize: 12 },
          tickLabels: { fontSize:12 }
        }} />`

React Native Compatibility

This library is no more with latest version of React Native (v0.54) and Victory Native (v0.17.1).

In the current implementation the victory graph module for react-native is named as victory-charts-native . While currently it is called victory-native

Only changing the names did not solve the problem. The problem persists and was throwing some other errors.

tickLabels position

Hello, is it possible to specify the tick labels' position ? For example, I'd like to show the tick labels on the right side of the Y axis, and above the X axis. I haven't found a way to do that in the docs.

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.