nativescript-community / nativescript-community/ui-chart
Custom Bars
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm asking if there is a possibility to custom the bars with the BarChart.
Is your feature request related to a problem? Please describe.
I'm actually implementing a BarChart and I got some frustrating things about customisation. Everything is flat.
Describe the solution you'd like
I would like to be able to customize only one of the bars, like in my barChart, every bar's green but the bar with the highest value has to be yellow to highlight it with something like set.getYMax().setColor('yellow'). And also be able to implement a border-radius on the bars to make them rounded. Implement a shadow around them to make it less flat
Describe alternatives you've considered
For the shadow I tried to use set.setBarShadowColor('red') but it look likes that it doesn't work or maybe I misunderstood something.
It's small details but it would make the plugin more valuable, maybe I missed something and it's already implemented but It's kinda hard to find doc about it
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the BarChart implementation and the existing bar customization and shadow APIs mentioned in the issue. Determine how per-bar colors, rounded corners, and shadows are represented, then verify that the requested customization works for an individual bar and that the resulting bars have the expected appearance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100