I'm working on a report using a business object data set. The business object is really simple it has three fields (ColorName, ColorCode, Date). I'm making a bar chart using the year from the Date as the category, ColorName as the series field, and count of ColorName as the "data" (the top area in the designer) field. So the graph will show each year along the bottom with series bars of the colors. In the "Series Properties" I have the fill set to ColorCode and my color code values are HTML color codes including the pound sign. The bar graph is working perfectly. The bars are the correct colors. The legend however is inconsistent. My current graph has 5 colors and only 3 of them are showing the correct color in the legend swatch. Two of them are black but they shouldn't be. If I change the color code for a ColorName then the graph updates correctly but the swatch is still black. I have another graph that is a pie chart which is doing the same thing but the legend works correctly in that one. Anybody have an idea where I can look to resolve this legend color issue?
It looks like if any year had no series values then the legend would not work correctly. And it seems to only happen when you add a series to the report. The solution was to update my query to return counts instead of rows; including 0 counts for series that had no records. This way every series/category group had it's own record in the data set.
I have applied the same case for Rating Score 1 to 5. For each series I needed to color each bar in the Bar Chart according to the following factors (1:Poor, 2:Average, 3:Good, 4:Very Good, 5:Excellent).
Right click on any bar in the chart and select Series Properties.
Select Fill, Set background fill options - Fill Style to Solid.
Enter the below formula in the formula editor:
=IIF(Fields!Rating.Value=1, "Tomato", IIF(Fields!Rating.Value=2, "Orange", IIF(Fields!Rating.Value=3, "#cdf8cd", IIF(Fields!Rating.Value=4, "#7de67d", "Lime"))))
Hope this helps.
Related
I want to display a graph very similar to below tradingView chart in amCharts. The problem is how can I fill the area between two specific line graphs with different fill color depending on which line graph is above the other.
Using fillToGraph will always fill the same color regardless of whether that graph is below or above the another graph and ends up mixing both the colors as shown below.
I am using amCharts v3.
Please help.
I am working on a script for plotting volcano plots for a specific number of groups that the user specifies, i.e. if he wants to have five groups colored, the script modifies the data set accordingly with a new column called color. All the other observations that are there shouldn't be highlighted specifically, but be grey.
Is it possible to only specify the color of one group while letting ggplot2 choose all the colors for the other groups available?
I couldn't solve this using scale_color_manual, since it expects values for all groups!
This image demonstrates my problem, all other features except the groups, i.e. the "Features (all)" group should be grey instead of red, however I want ggplot to color all other groups automatically...
Specifying a custom color palette and sorting the color column solved my problem :)
I am trying to create a new Area Line Graph that colors the space in-between the two lines, but for some reason I cannot accomplish this. The default behavior is to color the area from the series to the x-axis. Is there a way that you can only color in the space between the two series instead?
I am trying to mimic the behavior, but with HighCharts, here: https://confluence.atlassian.com/download/attachments/185729594/report_chart_created_vs_resolved_report.png?version=3&modificationDate=1354064895573&api=v2
I think you need to use the area range chart type: http://www.highcharts.com/demo/arearange
I want to display different colors in a line series based on some condition. As per my observation we can use fillFunction on columnseries to get different colored chart items, but it does not have any effect on lineseries. Is there any way by which we can get multi colored line series?
Can it help you?
flex line chart with variable colored line
The approach is a little bit strange but it works by me.
I'm using the asp.net Chart control to present a stacked bars chart.
I can create a mouseover custom tooltip using this code:
series.MapAreaAttributes = "onmouseover=\"showTooltip('#VALY');\"";
... which works fine. But I can't seem to find a way to show the rest of the values for the other series in that column.
Example:
I have 2 series (Paid and Unpaid) making up a single column in the chart. When I mouseover any of the series, I want to show both the value of the moused-over series, but also the other series contained in that particular stacked column.
Can anyone point me in the right direction?
We're also using stacked bar charts - we have click through functionality, for users to drill into the data making up each point in each series : we use something like this on each data point.
series.Points[index].MapAreaAttributes = "onclick=\"window.opener.location=this.href;window.opener.focus();return false;\"";