Git Product home page Git Product logo

rawgraphs-core's People

Contributors

bianchimro avatar gffuma avatar mikima avatar osioalberto avatar uf0 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

Watchers

 avatar  avatar  avatar  avatar  avatar

rawgraphs-core's Issues

add support for conditional visual options

  • implement a "getEnabledOptions" helper for evaluating which options should be disabled
  • when an option is disabled ideally it should not be passed to render. let's pass in the default value for now (could break some charts). see chart rendering and getOptionsValues helper in options module

Aggregator not working with multiple dimensions

It seems that having multiple values in mapping doesn't allow aggregation.
See the below example:

{
    id: 'bars',
    name: 'bars',
    validTypes: ['number'],
    required: true,
    multiple: true,
    operation: 'get',
    aggregation: true,
    aggregationDefault: {
      number: 'sum',
    },
  },

this code will throw this error:

Uncaught RAWError: Aggregator "s" is is not registered in RAW.

Is there something I'm missing?

trying to reset data do nothing

Hello,

I display a cloud of points as bubblechart.
I want to reset only data.
So I do :
compassCalibCurve = chart( bubblechart, { ...
Then I display datas. (it works well).
Then I want to reset data:
compassCalibCurve.data = []
compassCalibCurve.renderToDOM(compassCalibDiv)
But nothing occurs. I see rawgraphs-core displayaing the previous datas.
Best regards.

data casting

  • when whe get casting errors, also specify the column name for the cell
  • when we find empy cells, dont't try too cast, but return empty string for string data type and null for number and dates

ColorScale - current version incompatible with stacks

In short, for stacks it doesn't make sense to expose a "color" dimension, bot from technical and conceptual point of view.
the color scale should be updated by the render.js - or the mapping function should be able to export stacks.

Visual models based on stacks (stacked bar chart, streamgraph, bump chart) requires to compute the d3.stack() function in render.js. This creates a new structure that keeps only stacks keys and values. I think it takes as implicit that colors can only be mapped on keys (one color for each stack serie).

Furthermore, it does not have any logic to use the color in a different way than on stacks.

Output of mapping should use the same structure for all datatypes

Screenshot 2021-02-08 at 11 57 15

At the moment, dates datatype is noted as:
dimension.dataType.type: 'date'

while for numbers is
dimension.dataType: 'number'

which makes more complex its usage in rendere (e.g. to understand if we should create a numerical or temporal scale).

My proposal is to use the dimension.dataType.type for all the types

Prevent from pasting empty rows at the end of the table

Sometimes when you copy a table from a spreadsheet software you also get a lot of empty rows at the end of the table. These empty rows can create problems in parsing the data type. I would suggest to not import empty rows if possible.
Screenshot 2020-10-13 at 10 37 19

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.