rawgraphs / rawgraphs-core Goto Github PK
View Code? Open in Web Editor NEWRAWGraphs core library
Home Page: https://rawgraphs.github.io/rawgraphs-core/docs/
License: Apache License 2.0
RAWGraphs core library
Home Page: https://rawgraphs.github.io/rawgraphs-core/docs/
License: Apache License 2.0
getOptionsValues
helper in options moduleIt 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?
See alluvial diagram as reference.
in the mapping function i create a property called source
, and i'd like to use it for colors.
However, the colorScale returns an empty array
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.
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.
add CI with github action workflow
It would be nice if columns with currencies symbols or % to be automatically parsed as numbers
Could you please take a look at #56. This fixes a ReDoS security issue in one of the dependencies for rawgraphs core.
https://security.snyk.io/vuln/SNYK-JS-D3COLOR-1076592
Cheers,
Sylvan
https://github.com/rawgraphs/rawgraphs-core/blob/master/src/raw.js#L142
If we use style
prop we lose it when we export to .svg
.
Background should be a <rect fill="my background color" width="full width" height="full height" x="0" y="0" />
element inside the svg
Hi there!
I was looking for the docs for rawgraphs-core but the URL on the GitHub repo:
..and rawgraphs docs page:
Both give a 404 - page not found - error. The URL is https://www.rawgraphs.io/rawgraphs-core/docs
Thought you might like to know in case this is accidental.
Cheers,
Phil
Why don't we manage the DOM element as other chart prop (data,etc) with getter/setter and avoid https://github.com/rawgraphs/rawgraphs-core/blob/api-experiments/src/raw.js#L111
const mychart = chart(visualModel, config, DOM_node)
At the moment, among the visual options types there is only colorScale
(see https://rawgraphs.github.io/rawgraphs-core/docs/chart-interface#visualoptions).
Would be nice to have an option to define a single color, as for the background option.
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
Add util to apply multiple styles to a d3 selection.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.