wbfz
Forum Replies Created
-
✅
Thanks. Its working now. Added the CategoryX
Thanks. Will try it out.
Thanks @martynasma
I am aware of this snippet but it is based on having a color field in the json data.
There is no color field in my json data that’s why i asked if another category field can be used as the condition to apply custom colors e.g if the category name is Red then column color will be red.
Most sql tables don’t store color codes as part of the data.
Regards
Trying out the Adapters config but not getting the exact solution.
Tried out the configs below but none gave the expected outcome. It applied the default color to all the columns in both cases.
series.columns.template.adapter.add("fill", function(fill, target) { //switch (target.dataItem.name) { switch (target.dataItem.category) { case "Excellent": return am4core.color("#F9F871"); case "Good": return am4core.color("#845EC2"); case "Neutral": return am4core.color("#D65DB1"); case "Bad": return am4core.color("#D65DB1"); default: return am4core.color("#FF3D00"); }
and
series.columns.template.column.adapter.add("fill", function(fill, target) { if (target.dataItem) { if (target.dataItem.category == "Excellent") { return am4core.color("#F9F871"); } else if (target.dataItem.category == "Good") { return am4core.color("#845EC2); } else if (target.dataItem.category == "Neutral") { return am4core.color("#D65DB1"); } else { return am4core.color("#000000"); } } return fill; });
Thanks @martynasma
I went through the link before posting here. The examples there were based on a color field existing in the json data that the propertyField can map to.
I don’t have an existing color field in the data and my json data is externally loaded as described here – https://www.amcharts.com/docs/v4/concepts/data/loading-external-data/#JSON
Is there an example on how to use the
propertyFields
based a specific field name and add a custom color to it?Thanks
Thanks for the update Gabriel.
Hopefully the decision will change in the future.Forum: Plugins
In reply to: [RDP Wiki Embed] Option to not display page titleThanks Robert for this feature. It was well thought of.
Thanks Andrew 👍
Forum: Plugins
In reply to: [WP Sticky Side Buttons] Doesn't show on frontendAlso, if i delete a button list from the backend, it redirects to the frontend and logs me out.
Where should the code be pasted? Thanks
Forum: Plugins
In reply to: [Plugin Organizer] Global disable for back end only pluginsThanks Jeff 🙂
Forum: Plugins
In reply to: [Plugin Organizer] Overriding Global & Post Type SettingsThanks @Niackery for the well documented issue and recommendations. I had the same issue and was about to ask for support before i found your post.
Thanks Dario…It works 👍
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Add Page Template To Page AttributeThanks for the clarification.