Good morning!! I'm new to javafx charts, what im trying to do is the following, but in a single chart:
http://i.stack.imgur.com/8uF5k.jpg
The input are two arrays, one with positive values, and the other with negative values. When I mix both arrays into a single chart, this is what I get:
http://i.stack.imgur.com/dOV12.jpg
I also tried to set the color of the second data set to transparent color, with no luck.
Any ideas? Thanks!
As James_D mentioned, my problem was solved using the new prerelease of java! now it's paining the negative side of my area chart properly!
Related
I am creating a Line chart and I have set Values on data points property to true, so It's showing values also. The problem is I am using two dimension so values are getting overlapped. This is what I am talking about :
Is there any solutiuon to this problem OR Is there any alternate to this prob ?
You can try to extend the size of your graph if it's possible, if not I don't think there's an other solution to your issue.
If I Were you, I would transform the line chart into a bar chart which is more lisible.
I need a area chart that can stylize the chart fill in a different color (red, e.g.) when this be negative.
How to do it in JavaFX?
http://i.stack.imgur.com/SSl5a.png
http://i.stack.imgur.com/nzag3.png
I think the easiest way to achieve this is to create two XYCHartSeries for your Chart.
One for the negative values and one for the positives. Then you can set the color of the ChartSeries with CSS like this:
positiveChart.setId("positiveValues");
positiveChart.setStyle("#positiveValues {-fx-bar-fill: #4CAF50 }");
I am trying to construct a conditional background, based on a categorical variable, in Tableau. For example, the fed funds chart; you can see there's a line chart with two background colors. You can see that the grey extends the entire height of the chart:
http://www.alhambrapartners.com/wp-content/uploads/2012/01/FED-FUNDS-Rate-1954-to-Present-010612.png
In my data, there are 3 colors. I can get close to it by using a dual axis chart, but I can't seem to get it just right. I tried assigning a static variable, and then using the categorical as a color also, however, that doesn't really have the necessary effect.
Does anyone have any ideas?
This is the data:
https://www.dropbox.com/s/jubue3epaqct0cg/Book3.xlsx?dl=0
This is the Tableau workbook:
https://www.dropbox.com/s/753399kzm922l54/Book5.twbx?dl=0
Figured it out...displayed using a count of the categorical, and then a percentage of total.
https://public.tableausoftware.com/views/Book5_620/Sheet1?:embed=y&:display_count=no
I have created a bar chart in iReport Designer 5.1.0. I want to show some ips at x axis and the occurrence of each of these ips at y axis. The bar chart must have a single color but when I run it bars have different colors with each other. I think series expression has to be empty, and I have to put $F{ip} in category expression and $F{occurrence} in value expression, but series expression has to be filled because it is not optional.
It would be great if someone can help me.
In your series expression, using quotes you can just specify something like a name or anything relative to the chart. For e.g,"Ip v/s Occurrence". Basically have a string value in there. This will be displayed as a legend. You would get the chart in single color.
change the orientation again back to vertical. Click the barchart and choose the properties to be orientation:vertical.
Hope thats what you meant
I want to display overlapping boxplots using Sigmaplot 12. When I choose the scale for the x-axis as linear then the boxes do indeed overlap but are much too thin. See figure below. Of course they should be much wider.
When I choose the scale of the x-axis to be "category", then the boxes have the right width, but are arranged along each single x-value.
I want the position as in figure 1 and the width as in figure 2. I tried to resize the box in figure 1 but when I choose 100% in "bar width" than it still looks like Figure 1.
many thanks!
okay, I found the answer myself. In Sigmaplot, there is often the need to prepare "style"-columns, for example if you want to color your barcharts, you need a column that holds the specific color names.
For my boxplot example I needed a column that has the values for "width". These had to be quite large (2000) in order to have an effect. Why ? I have no idea. First I thought it would be because of the latitude values and that the program interprets the point as "1.000"s, but when I changed to values without decimals, it didnĀ“t get better.
Well, here is the result in color.
Have fun !