Comments (4)
FYI: https://www.amcharts.com/docs/v5/charts/hierarchy/hierarchy-node-colors/
from amcharts5.
Chart assigns colors for each data item automatically from colors
of the series and overrides the ones set in template. So I see two ways to solve this:
-
modify colors array:
series.get("colors").setAll({colors: [am5.color(0xff0000)], reuse:true})
-
add adapter which will override a color:
series.circles.template.adapters.add("fill", ()=>{
return am5.color(0xff0000)
})
from amcharts5.
Thanks. I will give the adapter route a try. I appreciate all the hard work on this.
I do believe its worth pointing out then that this is both a documentation issue:
Circles
circles.template can be used to configure node circles. All nodes have them.
The template accepts all Circle settings.
And likely some form of enhancement request as it seems unlikely those upgrading from 4 are going to be okay losing the ability to configure this in a templated way... Also though, this makes this chart work differently than the others, which is certainly a barrier to learning this complex library.
Cheers
from amcharts5.
We're just in first stage of our docs development for amCharts 5.
Your suggestion does make sense. We're going to consider adding a note about it to ForceDirected docs. Thanks!
from amcharts5.
Related Issues (20)
- how to change a certain range of spacing on the y-axis? HOT 2
- Partially style axis line or limit axis length? HOT 4
- How to set the display position of child nodes when initializing data in Force directed? HOT 7
- Screen readers are announcing different data from the visible data on the Funnel chart. HOT 1
- Drawing tools with live data stock chart HOT 5
- BUG : Custom Indicator data gets save Twice HOT 4
- PieChart: When using a SliceGrouper, zooming or breaking slice displays group slice again + the actual grouped slices HOT 2
- Fix position of series bullet label to the top of the chart (XY) HOT 2
- Is it possible to add space between items in built-in amCharts 5? HOT 2
- Amcharts 5 Pyramid Chart Animation HOT 8
- Graph is showing white space on tab switch HOT 2
- Gradient fill for line type chart HOT 2
- Use a DateAxis for the Y-Axis of an XY-Chart HOT 2
- Blank chart when exporting WordCloud chart HOT 9
- Types Missing from XYSeries class HOT 10
- Enhancement : Don't apply Indicators before Save Button Click HOT 2
- Force pie chart width to cater for dynamic legend width to prevent legend clipping? HOT 2
- How to get the independent behavior between 2 panels. HOT 13
- How to change legendRangeValueText dynamically? HOT 4
- Venn diagram crashes when quickly turning off more then one series in the legend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amcharts5.