Coder Social home page Coder Social logo

react-data-explorer's Introduction

react-data-explorer's People

Contributors

brumik avatar

Watchers

 avatar

Forkers

hyperkid123

react-data-explorer's Issues

Chart Builder: Interactive legend hover

I could not make it work yet but this is how it should work:

  • the event props on the wrapper should have: chartNames
  • the LegendComponent should have childName for the corresponding data set (one from chartNames)
  • The createChart component should have name prop
  • All of these seems to be set correctly, the legend from the API is updated with a childName prop, in addition when getting data from the API each series has a unique name string assigned to it, ensuring that the props will remain unique, and providing the same name for the different components in a uniform way.

Chart Builder: API - POST / GET params

Right now all the params are passed as a post when fetching the API. We should generalize this and be able to:

  • (low priority) Create GET or POST request
  • (high priority) Be able to specify attributes in the POST request which belongs to the URL (pagination)

Chart Builder: Interactive legend for single series

Interactive legend for multiple charts from one series

  • Eg.: line chart where we have one series and we are using two different attributes for each line
  • I think maybe we should sacrifice memory and just duplicate the data as if it were two series, so basically we will have a data set for each chart we are displaying, no matter if the data is duplicated --> this is not feasible from the received data
  • It could be derived from the attributes field from the API
  • This would mean that we create series like the following: if we have `attributes: [ 'a', 'b' ] then we duplicate the series we get in a way that one will contain everything without 'a' and the other will contain everything without 'b'

Chart Builder: Schema for Axis

The y-axis and the x-axis on the wrapper right now do not support all the options that are supported by Victory charts. The solution would be to extend the props of the VictoryCharts or maybe uniformize it and have few options specific for the chart builder and have a props field like in the other components which would be the exact same as the VictoryAxis props and would pass to the axis.

Eg.:

interface ChartAxisProps {
    /* chart builder specific fields */,
    props: VictoryAxisProps
}

Chart Builder: API - authentication

In AAA we use before every request the getUser() async function to refresh the token. We should be able to do it in the chart builder too

Chart Builder: Stacked chart y-axis

When stacking the charts the Y-axis is not recalculated and this causes some weird chart layout where a bar heigh for huge values still can be the same as a bar height for small values.

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.