Query Regarding Standardized attributes #2454
arnavdas88
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hola!!
I was implementing Nivo Chart components like Bar Chart and Line Chart in ReactPy as a side project, and I noticed, for each chart, the parameters vary hugely.
Such as, for ResponsiveBar, the
Stylemodel looks like this :where as, the same
stylemodel, for ResponsiveLine looks something like this:Basically, there are different attributes, like
areaOpacity,areaBlendModeandborderColorthat exists in one chart, but not in another. Although it is only natural, for different charts to have different attributes, Is is possible to standardize some of the parts?I am speaking from not just "Technical" but also a "Documentation" perspective, as in the website of Nivo Charts, for each charts, all the attributes are divided into categories like
base,style,interaction, etc.Is it possible to expand on this existing categorization, and have some of the common basic attributes to
base, while data dependent attributes and fields to a category, saydataorline data & bar data, and common styles tostylecategory, while keeping another category, sayarea stylesstrictly for charts that deals with area and fills.This would be very similar, to the category
Arc labelsthat only exists for the charts that deals with arcs.Beta Was this translation helpful? Give feedback.
All reactions