Change Shape Fill based on Shape Data in Visio - visio

Wondering if someone can help me with what I thought was a simple Shapesheet issue.
I'd like the fill colour of a shape to change based on one of the shape data values. I thought I could do this easily:
FillForeground: If(Prop.Colour="Blue",XXX,YYY)
But this doesn't work? (Visio 2021)
I've 5 list values for the data and would like a different fill colour for each? Weirdly, I can see that the value does change based on the data selection, but the actual colour seen in on the page doesn't.
Obviously, I'm not much of a coder, just an enthusiastic meddler.
I've stuck at:
=IF(Sheet.3780!Prop.StringSection="Firsts",THEMEGUARD(MSOTINT(THEME("LineColor"),40)),THEMEGUARD(MSOTINT(THEME("AccentColor"),40)))
(The shapes to colour are within a group)
Thanks
Steve

Steve !
FillForeground: If(Prop.Colour="Blue",XXX,YYY)
But this doesn't work? (Visio 2021)
For compare strings in ShapeSheet you must use STRSAME function
Use syntax like this:
IF(STRSAME(Prop.color,"blue"),4,3)

Related

Tableau packed bubbles - arrange the bubbles custom

I'm looking to create a packed bubble graph like the below (size of the bubble corresponds to population, and the color of the bubble corresponds to number of widgets sales). The graph is exactly the way I need it, except that I would like to arrange the countries so that they are grouped by continent. Is there a way to do this in Tableau?
I've tried to recreate a similar scenario even though it's not clear if the bubble color should (or not) be related to a specific field.
That being said, using the superstore dataset, I've "grouped" customers by region (color) so they are some how aligned through inner circles.
In order to do so, I just sorted the region pillow in the detail section.
See below.

ParaView: display director

I'm trying to display liquid crystal directors using ParaView. The director is a spin-2 field that should look like a headless vector, centred in the middle, like the cylinders in this picture:
https://pbs.twimg.com/media/C8fj1bWXoAEFy5R.png
I know how to make an arrow filter, like this other picture, but it's not what I want:
https://summerofhpc.prace-ri.eu/wp-content/uploads/2013/07/arrows.png
I can't find the filter that will do what I need. Could you please tell me if I need to create a custom filter or if there's a quicker way to obtain this result within ParaView?
My data are expressed as 3D vectors within a VTU (unstructured grid) file.
Thanks in advance and sorry for the newbie question!

iOS-Charts: How to include a gap between data points & lines

I'm using iOS-Charts with Swift to draw line charts, and I'm looking for a way to place a gap between the data points (circles) and the lines themselves.
Something like this: example
I've tried playing around with some values under the drawLinear section of LineChartRenderer.swift, but I don't know enough about Core Graphics to do anything useful.
Having a white outline for the circles is unfortunately not an option, since I'm displaying multiple datasets with images containing transparent layers, and the datasets need to be able to overlap (as in the example image)
Any help would be greatly appreciated - thanks :)

How to pickup a shape based on a cell text in tableau reports

I am not a tableau developer but i am just a user of tableau reports. My engineer is telling something is not possible so wanted to take experts suggestions and help to solve the problem.
My requirement is simple. We need to build a report in tableau with 4 columns and the last column should contain a color coded arrows (R,G,Y) representing the data trend (Up/Continuous/Down). The data will change frequently and the input source is excel sheet. My engineer is suggesting that, everytime we have to manually set those shapes in the 4th column, once the report is generated from the excel (basically from the first 3 columns only). I dont like to have a manual intervention everytime in tableau since i am not good at building/editing reports and its not a best practice to automate something.
In below picture the last column is the one i wanted to automatically generated based on excel sheets data.
My suggestion to him is to add the 4 column with data as below and in tableau bring the shapes accrodingly using some kind of a formula or so.
GC = Green continuous
GU = Green upwards trend
GD = Green downwards trend.. followed with different color codes (Green/Red/Yellow) as per data.
Is that possible in Tableau? If so any suggestions here would be greatly appreciated.
Thanks,
Kiran
It is definitely possible, as long as you have a formula that can produce the GC, GU, etc. values. Then it is simply a matter of mapping your custom values to relevant shapes (which is a simple manual one-off step in Tableau). If built-in shapes are not sufficient, you can add custom ones. Some types of shapes can also be colored dynamically, based on another formula.
Use Tableau Help or Google/Tableau Forum to find out how to do all of this.

Core-plot, label length

I've a little problem on my graph when using core-plot.
I plot my datas using 2 arrays, 1 for Y axe and 1 for X axe, classic.
My problem is that I have values like this:
Values Array : (
"0.105814",
"0.105828",
"0.1058",
"0.105814",
"0.1058",
"0.105793",
"0.105779",
"0.10575",
"0.10575",
"0.10558"
And when I display the graph, I just see that:
And I don't want one "0,1" but the entire value. I didn't find the parameter so if someone know, I guess it's not really complicated.
Thanks for any help!
PS: And I know it's not "label" like labels are used in core-plot but I don't know how to call it :P
And sorry for my English.
Each axis has a property called labelFormatter. This is a standard NSNumberFormatter. You can create a new formatter that formats the labels any way you want. See Apple's docs for details.