keesschollaart81 / AzureCostInsights.Marketplace

Azure Cost Insights - A widget for Azure DevOps (Maintenance repo)
https://marketplace.visualstudio.com/items?itemName=keesschollaart.AzureCostInsights
25 stars 6 forks source link

Alter colors of data sets #17

Closed Rasmus256 closed 5 years ago

Rasmus256 commented 5 years ago

It would be nice to be able to alter the colors of the different data series - We have two data sets that are almost indistinquiable from each other, and we see no way of affecting this.. image

keesschollaart81 commented 5 years ago

Hmm, interesting. I use randomColor seeded by the name of the series to get a random (but predictable) color. What does it look like if you tick the 'fill' checkbox under advanced options?

Rasmus256 commented 5 years ago

Hi, sorry about the late reply. It looks like this: image I tried to find approximately the same region, but fill makes no differrence since I am using a stacked bar chart, I think? I also tried line charts, stacked or not, filled or not, and it always results in these colors for my data. I am grouping by Resource Group, so the name of each resource group is what's used for the seed?

Rasmus256 commented 5 years ago

As @keesschollaart81 pointed out, the colors are picked based on the name of the series. I found a way around this by using tags instead of resource groups - Since tags can be any text, and the color is randomly generated from this, fiddling with the tags can dramatically increase readability in the chart :)

keesschollaart81 commented 5 years ago

Hehe. Nice solution, thanks for working around this, since I could not thing of a easy solution :-)