Conditional color change in a chart - format

Is it possible to create a bar chart with red colour when the values are negative and green colour when the values are positive? Is Conditional formatting within a chart in iReport possible?
If so, could anyone suggest a way to do it?
Thanks in advance for your help.

I know this is old but maybe someone needs it. Paste a green chart in one group and paste a red chart in another group( changeing the series color).
Of course both charts are connected to the same query. Then in the print expression of each group check like if (num<0) print this group, then in the other group header's print expression check if (num>0) print this group

I'll go with #Rika
I don't think there is a way to that, 'cuz since the graph is a whole object you don't get to get access to them bars individually. iReport has some limitations, u know.

Related

How to change a cells colour based on a cell on a seperate sheet being empty

I'm struggling to nail this. I'm trying to use conditional formatting on google sheets to change the colour of a group of cells based on a cell in a different sheet being empty.
So for example I have a sheet called "Controls" with an empty cell, M13, to write a persons name. Once that cell has had text inputted I would like a group of cells, BE2:BN25, to change colour to white so as effectively 'unlock' them for data entry.
I've tried =NOT(ISBLANK("Controls!M13")) but it's not changing colour once some text has been entered to that cell.
Is this possible on google sheets or am I just making a glaringly obvious error?
Thanks in advance for your help.
try:
=NOT(ISBLANK(INDIRECT("Controls!M13")))

Can I add a moving scale or axis in plots using Vegalite?

I am trying to add a movable scale or axis inside a plot. For instance: in this example of stacked plot: Click-to-view
I want to include a movable y-axis scale so, if we hover the graph and put the mouse pointer on the beginning of the orange color of any bar, the a-xis will begin from that bar. (Specifically, moving x=0 line.)
I meant something like this example (of d3).
https://observablehq.com/#d3/index-chart
But, here I want to change the value of x-axis by moving the line. Is it possible to do it using vegalite? If somebody has any similar example in vegalite, can you refer it?
Thank you!
AFAIK, there is no animation in Vega Lite. However, you may check out Gemini which aims to extend the grammar of data viz to some simple animations of single-view Vega/Vega-Lite charts

How to add patterns or stripes to SSRS data cells instead of a color

IN SSRS:
I can only add Solid color fills to the data cells inside a matrix.
How do I add Stripes or Patterns as background fill instead of a solid color.
Is there a particular color code like '#xxxx' for stripes?
There are certain rows in my report that need to have stripes or patterns as backgrou fill.
Thanks
I have found some methods around this:
1- You can use image gradients to fill text boxes by right-clicking the cell and selecting text box properties. You can use the Fill tab to select a small image or item that has a gradient or pattern and apply it within your cell(s)/report.
2 - Another approach is to use a combination of Font/Color/Bold/Italic/Underline and Boarder colors/weight to achieve your desired result.
3 - Apply a gradient-style scheme to your report by using one or more colors and dynamically changing the hue as you go up or down the report. That way, the top could be darker than the bottom, or vis-versa.
I hope this helps.
Numerous fonts can be used.
Open the Character Map
Select Arial in the Font drop down
Scroll to near the bottom, select the cross character
Hit the Select button a number of times, grab as many characters as the SSRS textbox may require to fill its width
Click copy
In SSRS select the textbox then Ctrl-P to paste
Experiment with font size and font color to get the desired effect
Setting padding to zero may help
Setting row CanGrow to False may help
I find there is a little gap between cells vertically but it is close to perfect for me. There is likely to be a character in Arial or another font that works even better.

ChartDirector Display Single Value

I have a question
I use BarLayer Add three Dataset
I can use display all Data
setAggregateLabelStyle
setAggregateLabelFormat
but I want display single Data Value Like this
Any Idea?
I find a way to Solve
use addGroupLabel
You can draw the label in dynamic layer. Calculate the red bar position and draw the text on it

JQplot- Editing built in Axis Values

I tried Implementing Line Graph using JQPLOT. i want to disable the X-AXIS values which are dynamically built up in the code. I was able to hide the Y-Axis in Jqplot.min.css and I want to do the same for the X-axis .. Can someone please suggest something?
Any other logic to give our own X-axis values is much appreciated.
Thanks
here the link where you can get your answer:
Jqplot Docs
Look at the options for axes, ticks[] can contain your own x-axis values.
different show options can hide your x-axis or just the tixks also.

Resources