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.
Related
Is there a way to insert a picture as the 'colour' of a variable in a ring plot in R? I.e. the fill of the plot is a picture trimmed to what would traditionally be filled with a block colour? Can I do this with an image command where you'd normally specify colour in a plot?
I often have to use plots mixing lines and points (ggplot2), with the colors of the line representing one variable (here, "Dose"), and the shape of the points another one (here, "Treatment). Figure 1 shows what I typically get:
Figure 1: what I get
I like having different legends for the two variables, but would like to remove the round markers from the color scale, to only show the colors (see legend mockup below, made with Gimp). Doing so would allow me to have a clean legend, with colors and shapes clearly segregated.
Figure 2 (mockup): what I would like
Would anyone know if there is a way to do that? Any help would be much appreciated.
Note: the plots above show means and error bars, but I have the same problem with any plot mixing geom_line and geom_point, even simple ones.
Thanks in advance !
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.
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.