Tableau bar chart - how to color each bar different - bar-chart

I have a vertical bar chart plotting sales figures by age ranges (15-20, 20-25 etc).
Currently, all ten bars I have are blue in color.
For purely aesthetic purposes, I would like to make each bar either a different color entirely (probably too outlandish though), or a different shade of blue. Can either/both of these be done?

Yes, both can be done. You can achieve this if you drag the 'measure values' onto the color shelf. You can then edit the colors so all the other measures are one color or you also select single color with different shades.
Hope this is what you are after, but if not please post back.

Related

Stripes in background in RDL

Is it possible to add stripes in the textbox in report?
So the result looks like in the picture?
User chooses color for the column in the application
color
This is no built in way of doing this (no fill style) but you could use an image of the stripes as a background image. You would need to create and save images for each colour and style and add them as embedded images in the report.
You can then set the background image of a textbox to the required image.
... or better still use an expression to select the image based on conditions.
=SWITCH(
Fields!ItemCode.Value >10 , "RedStripe",
Fields!ItemCode.Value >50 , "GreenStripe",
True, Nothing
)
Where Redstripe and GreenStripe are the image names you embedded.
You can set the image to repeat etc from the properties panel
Update after OP stated that colour is parameterised.
If the colour is a parameter then we need a slightly different approach.
First you need to create an image with stripes (any colour will do ), and then remove the stripe pixels so that the stipes are now transparent. Save this as a PNG.
I created one quickly whist testing which you can save from here hopefully. You'll just have to move the mouse around in the area below as it's a white on white image! Or switch StackOverflow to the dark theme, then you can right-click and save the image. If not you'll just have to create one yourself.
Image below here.. switch StackOverflow to Dark theme to see it
Image above here..
Now you will need to set the background image to this image but also set the backgroundcolor property to an expression. In this exmaple, I set the background to the value of my parameter.
My parameter is just text and I typed in some hex values in the form #FFFFFF. You will have to work out how to get the value from your color pickers to the report yourself, ask a new question if required.
Here's the report design
and here is the report running using a few sample hex values.

MS Access - Pick Color From Combobox

I'm creating a plant database and in the plant detail form, I'd like a dropdown so the user can select the color the plant is, ultimately this would go on a summary report so all of the colors of the plants selected would show and the user can get an idea of what the plant colors would look like planted.
I'm using the Color Index of 56 colors and I made a table with colors (1-56) and used conditional formatting, but conditional formatting only goes to 50, plus I'm not sure on how to get only the color to show on the dropdown.
Here is idea how to display unlimited number of colors in continuous form or report without using conditional formatting:
Create a table, which contains color ID and a column with stored pictures of desired colors, one pixel is enough, each color in separate row. Column data type - OLE Object, insert Bitmap Image with color sample.
Join this table with your main table by color ID column
Display colors in picture control Bound Object Frame, Size Mode should be Stretch or Zoom, one pixel picture will be tiled across whole picture control
Built-in dropdown cannot show color samples, but you can replace dropdown by form with desired samples, it's not complicated.

Sikuli, Java & Selenium - How to detect image background colour change?

Looking at Sikuli (in conjunction with Selenium) as a possibility for automating the more visual elements of our UI testing, in particular issues that may crop up when the expected branding is not applied.
In my test, I have a white navigation icon image sat on a purple nav bar. I take a screen grab of the white icon sat on it's purple background and that is used as my Pattern in the Sikuli test class. If I then change the CSS in my web app so the nav bar is red, I want the test to fail.
Unfortunately, the background colour change is ignored and the icon is clicked regardless. If I set the pattern's similarity value to 1f (i.e. an exact match), the icon is not clicked. However, it also does not clicked the icon if I change the nav bar colour to the correct purple so it matches the icon screenshot I am using for the pattern.
A "similar" parameter value of anything from 0 to 0.9 lets the test pass once again, regardless of the nav bar colour.
Is this a restriction in the ability of Sikuli or am I missing something?
Edit:
So I found THIS ANSWER to a similar question and it prompted me to check the score returned when trying to match the white icon on red pattern and the white icon on purple pattern to the web page which had the purple branding. The score for both was over 0.9, with the difference from about the second decimal place onward, hence the match of both when I set the "similar" property of the pattern to 0.9.
It prompted me to try increasing the area of the screen shot to include more background relative to the icon size. This resulted in a score of 0.9x for the white on purple pattern and 0.7x for the white on red pattern.
So my conclusion is that the matching does take account of the background colour but if the majority of the screenshot pattern you are using is the same colour, the difference in score is minute.
Can you bypass the background directly behind the icon and look to the side of it? Excuse my lack of coding knowledge just trying to help come up up with a work-around
exists (icon):
if exists(whitebg): #capture a small area with just the color near the icon
pass
if exists(redbg):
fail

How to set fixed colors for series legend?

I am using Telerik Reporting and creating reports with Report Designer.
What I want to do is set fixed colors for specific series elements.
For instance, in a monthly financial bar chart, if the series is Company, I want to set ElectricityCost as red and WaterCost as Blue all the time. The problem is that not every bar has all types of the cost, and for a specified time range, not all types will be included, which causes that the color legend varies.
I've tried some approaches but failed.
Is there anyone who knows how can I achieve this goal?
Finally I find how to set the color for specific series.
The data points' color can be set by using the Graph.Series.BarSeries.DataPointConditionalFormatting property.
The legend markers' color can be set by using the Graph.Series.BarSeries.LegendItem.MarkConditionalFormatting property.
Besides the color, other styles can also be set so that for a certain series, the style will not change even no data is displayed after the filtering.

SSRS Frame around several Charts?

I am creating a dashboard and wanted to add a Frame/ Border/ Signifier around a series of seperate charts to show they are related to each other. For the life of me I can't sort out how to do this.
An example would be the Cost Per Year section in the lower left
There are 4 gauges, and 4 bar charts. I am doing something similar, well, attempting to do something similar
Use a rectangle, put your gauges, charts, etc inside the rectangle, then you can add text boxes, borders, background colours to the rectangle.
the rectangle can grow to contain what ever is in it