Skip to content

line chart shadow option#561

Open
Kaienss wants to merge 322 commits into
chart-kit:masterfrom
Kaienss:line-chart-shadow-color-option
Open

line chart shadow option#561
Kaienss wants to merge 322 commits into
chart-kit:masterfrom
Kaienss:line-chart-shadow-color-option

Conversation

@Kaienss

@Kaienss Kaienss commented Oct 1, 2021

Copy link
Copy Markdown

Added one option to dataset
shadowColor: similar to color, if not provided, shadow color for the dataset will be the same as the line color with useShadowColorFromDataset:true,
if useShadowColorFromDataset:false,
shadow color will be chartConfig.color.

shadow color is applied with following priority.
dataset.shadowColor -> dataset.color -> chartConfig.color

WhiteSaxo and others added 30 commits March 7, 2019 13:34
* Add files via upload

* Add files via upload
* Added property 'absolute' to Pie Chart

If property absolute is added to PieChart (<PieChart absolute />) the values change from percentage to the absolute numbers.

* Updated README.md
…it#97)

2) Refactor decimalPlaces in renderHorizontalLabels (easier to read).
3) Updated App.js and README.md to show use of yAxisLabel.
* Updated README.md

* Add StackedBar Factor

Added a factor to correct Vertical Labels

* Create stackedbar-chart

* Add StackedBarChart to index.js

* Add StackedBarChart to README.md

* Added stackedBar Var

* Resolve Conflicts

* Inverted Legend

Inverted Legend that it fit to the StackedBar order.

* Improve Y Value

* Try to repair the wrong Tab size

The first commit has a wrong Tab Size

* Correct Label position when Stack is to small

* fix lint errors, add example into the app
When the data is negative value in BarChart,
the corresponding bar is rendered to downward from 0.
* Draw BarChart and LineChart from 0

* Add prop `fromZero`

Add prop `fromZero` to BarChart and LineChart to
render the charts from 0 not from the minimum value.
* update app.json to have sdkVersion

if sdkVersion is not present, expo will use the latest version installed on the computer vs the one from package.json

* update line-chart.js to fix onPress handler logic

* change larger click circle to not rely on the fill to have opacity
* remove Circles from View that were making them not show up in iOS
* Hide Horizontal and Vertical Labels

* improve docs
* Add labels to progress chart

* Refactoring to make this a non-breaking change
…hart-kit#141)

* fix: update paths-js library version to fix pie chart with empty values

* fix: fix NaN labels on pie charts with empty values
Please look into this and approve as I was not able to proceed or I will have to change the plugin thanks
alex-hladun and others added 22 commits December 6, 2020 09:45
Add center property to PieChart property table. Clean up JSX props styling.
Co-authored-by: Herman Starikov <Hermanstarikov@gmail.com>
Co-authored-by: Herman Starikov <Hermanstarikov@gmail.com>
Added one option to dataset
shadowColor: similar to color, if not provided, shadow color for the dataset will be the same as the line color with useShadowColorFromDataset:true,
if useShadowColorFromDataset:false,
shadow color will be chartConfig.color.

shadow color is applied with following priority.
dataset.shadowColor -> dataset.color -> chartConfig.color
};

getShadowColor = (dataset: Dataset, opacity: number) => {
return (dataset.shadowColor || dataset.color || this.props.chartConfig.color)(opacity);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it should default to url(#fillShadowGradient..., to make this change backwards compatible

@Hermanya Hermanya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change looks like it would change behaviour for existing users

@codeplaygoa

Copy link
Copy Markdown

@Kaienss @Hermanya any update here. I badly need this feature

@josh-thompson13 josh-thompson13 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@ghost ghost force-pushed the master branch 3 times, most recently from bc0b8af to 096eeb0 Compare June 19, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.