I am trying to create a column plot where each column has a different color. Plus I need to add ".data_labels" - so the values are visible.
Currently, I can change color of the font (in the data_labels). But I can't find how I can add "background color" to that label.
I want to make sure that black text will be on white background on top of the column (columns will have light and dark colors - so, it is not enough to change color of the font).
So, this will look like there is a white text box on top of column. Inside the box ("data_label") is text in black.
Note: I am using stacked graph, so I can't put text outside column (e.g. on top of the bar).
chart.add_series({ (...),
'data_labels': {'value' : True, 'position': 'inside_base',
'font': {'color': 'black', 'bg_color': 'white'}})
Related
I am trying to set the color of an indicator to different colors based on different values, like 1 = red, 2 = blue etc. Using guidance from a Youtube video (accessible using this link: https://www.youtube.com/watch?v=czUmPQmKmGU), I have created a Colors[4] control for the indicator I have after changing it to the "write" function.
The Problem on the front panel is that I am getting a control with numbers instead of a color box where I can select the colors to show based on the value. This was the control I got instead.
This is the control I am trying to achieve (below):
Is there any way that I can get the color box on my control instead of the number controls? I am not sure if it can be changed through a control on the front panel or something but what I have tried so far keeps leading me back to this problem.
Any advice is much appreciated
A color box control is just a U32 number (three bytes for RGB and one which is always 0), which is why that's what you get.
There is a right click plugin which adds a replace with color box option directly to the right click menu of unsigned 32 bit numbers, but I don't remember if it ships with LV or not.
If you don't have that, you can always just right click the indicator inside the cluster, select replace and navigate the palettes to find the color box. You can also copy a color box and then select the indicator and paste, which replaces the selected control.
The color[4] is actually an array of 4 colors (UInt32 as Yair said), that define 2 color gradients, one for the 'Off' state, and the other for the 'On' State of the control.
If you want to set the control's color, you will have to define all 4 of them.
I have a grouped bar chart in QlikView - the bars are displayed in different colors. Is it possible display the last bar in a group so that the border of the bar is red, and the middel of the bar is white?
Short answer; you can't do what you want to do.
You can individually set the thickness/presence of the bars but you can not change the colours of those borders. You will also need to set-up an expression for each you can not affect the border thickness based on the dimensions
And you can colour the bars as per the dimension quite effectively, so without bothering about the borders you can make the last bar always red, you just need to know the dimension you are working with
So this:
Will give you this:
Unfortunately not, within the bar chart object bars do not have a border.
How to change second y-axis text font-size in pentaho chart
I putted some text (i.e Monthly Cost ($000) in orthoAxisTitle it shows fine. How to put some text in second y-axis also
If you want to define ortho2 axis title, put your text to ortho2AxisTitle parameter and its font definition to ortho2AxisTitleFont parameter:
ortho2AxisTitle: Your title
ortho2AxisTitleFont: 10px sans-serif
If you want to adjust font of ortho2 axis label, define the font using extensionPoints parameter:
extensionPoints: [["ortho2AxisLabel_font", "normal 17px "Open Sans"'"]]
You can define the font also for all axes by setting axisLabel_font extension point. And then play with the rest of axes by e.g. setting text angle:
extensionPoints: [["axisLabel_font", "normal 17px "Open Sans"'"], ["ortho2AxisLabel_textAngle", "-0.6"]]
I'm looking to change a control's color in my report.RDLC. My reports are all generated by the ReportViewer control on a form called "rv".
The selected rectangle below is the one I'm looking to change colors.
It has the following properties:
How do I programmatically change the Background color of the rectangle?
I figured it out after a few hours. On the control of which you want to change background colors, select the "Expression" link from the dropdown.
Afterwards you enter in the code such as:
=iif(Fields!State.Value = "Approved", "LightYellow", iif(Fields!State.Value = "Analysis", "LightGreen", "Transparent"))
This will set the color of my textbox to light yellow if it's state is "Approved", or light green if it is in it's analysis stage. If none of those are true, it just stays transparent (default).
*Note: My "State" field was added in my dataset so I was able to use it in the expression.
I've created some animated as well as static banners in Flash CS5 and I'd like to apply clickTag ActionScript 2.0 code to them. However, I only found tutorials where over all the existing layers, you create a rectangle using the Rectangle Primitive Tool, set the border, fill, and opacity to 0 and then apply the code and export the movie. When I create the rectangle, there is no setting for opacity, and when I set no border and no fill, the rectangle disappears and the dark dot in the timeline becomes empty so I can't click on the rectangle in order to convert it into a symbol.
I would really appreciate any advice on this!
Create your rectangle using 'Rectangle Primitive' tool shapes menu instead of the regular Rectangle tool.
select your rectangle by a single click.
From the properties panel select the bucket symbol (the one used to control the fill color) and you will find a setting 'alpha' for setting the transparency.
change the alpha value to 0. after that remove the stroke.
select your rectangle, from the top menu : Modify > Convert to symbol. give it a name and select 'button' from the dropdown. press ok.
now select the button you just created, open the actions panel and paste the following code :
on (release) {
if (clickTAG.substr(0, 5) == "http:")
{
getURL(clickTAG, "_blank");
}
}