Forum Discussion
Format colour by field value - stacked column chart
- 5 years ago
Hi timmay ,
The reason for the problem you described is: because the SKU field is placed in the legend in the stacked column chart visual of table2, and the colors corresponding to different skus default from the colour hash field of the original data source, and each histogram is finally formed. Composed of many different colors. The prerequisite for color selection based on conditions in table1 is that there are no fields in legend, and each histogram consists of only one color. This is the reason why tabel2 cannot perform the same operation as table1.If the legend field in table2 is removed, you can also has colours based on field values as below:
If the problem is still not resolved, please provide detailed error information. Let me know immediately, looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Henry,
But without the sku in the legend the colors don't change to show the different skus. I need to show the difference in sales over time so the colors show that sku's sales.
so even if i put the color hash into the data colors > default color > fx >format by field value > based on field > "first color hash" (pictured below).
The chart is shown as the "table 2" in the above image, without the different skus in different colours.
Thanks,
Tim
Hi timmay ,
If you need to show the difference in sales over time so the colors show that sku's sales, after placing the sku field in the legend, you can only manually select hundreds of different colours for products.🙄This is the difference between these two tables.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.