Two Color JavaFX line in linechart - javafx-8

This is my first question so I hope I am asking this correctly
I made a stock chart using Swing and JFreeChart that paints the all lines leaving from a point that is above the Moving average in red and below in green (see image) (it uses a custom render) .
Now I am trying to update My program to use Javafx8 but I cannot find a way to do this with a Javafx LineChart.
Any help would be really appreciated since I have tried to find a solution for a long time and failed
Thank you

The advanced candlestick chart in the JavaFX Ensemble application has a similar concept. Perhaps you can find some insight there?

Related

Highcharts or Fusioncharts,which one to select

I have used Highcharts for drawing different types of graphs and for simple charts like stack, column, bar, pie etc.
But when I searched for GANTT chart I realize that it is not available in Highcharts. In the mean time I came across FusionCharts, can anyone please explain me which one to use and why? I'm a beginner in this area.
im working with amcharts since few years and I needed to make the same decision in the past and I'm super happy that I've choosen Amcharts it's super easy to use and to integrate in projects , I can just recommend this one it's pretty flexible, I guess you can also simulate the GANT chart if you simply combine few bar charts together :)

percent graphical representation as circle

im planning to do a percentage visualisation using a circle, and am currently trying to figure out what framework / technique to use.
i have used corePlot for graphs so far and have been wondering if it might be an option
my ideas are so far:
1: use a Core Plot piechart and add a covering circle layer in the middle
2: try to use quartz 2d to do it somehow
attached is a mockup how it should look like so you get an idea:
what do you think might be the best approach here? id like avoid using cover-up subviews and such..
is there any simple solution i might be missing?
thanks in advance
sebastian
(PS: i do not hope for any code here, just a general fingerpoint to the right direction)
As more of an alternative than an actual straightforward CorePlot answer, you could display your percentage in a customized version of the UICircularProgressView control which I can personally vouch for.

Simple form with pixel manipulation in Qt

I'm completely newbie to Qt
i want to create a 800X600 window that just show some circle and be able to manipulate pixels of the form. there is no interaction between user and form(no click, no dblclick,...) it just shows some circles with one color and lines with different pixel colors(each line may have different pixel colors)
also i want to be able to change the coordination system, i mean change it from top-left to the center of the window. could anyone help me do that with some sample code?
thanks in advance for your reply.
Please try downloading the Qt Creator (IDE), then reading through the tutorials. There's a whole host of very useful information provided for free, including a lot of the code samples you are looking for.
The following examples might also be of particular interest:
Animation Framework Examples
Graphics View Examples
Painting Examples

Draw nodes according to (X,Y) coordinates? Zest

Can anybody help me please?
I should create a graph to display the nodes positions using eclipse. The positions are given as (X,Y) coordinates. Is this possible to do using Zest?
Or can you recommend other tool? (Note that I'm using eclipse RCP for other parts of the user interface)
Thank you in advance
If you already have the (X,Y) coordinates, Zest would not help you a lot, as it is centered around the concept of automatic layouting which does not work well with existing coordinates (however, it is possible to write a domain-specific layout algorithm that works with this input).
My opinion is that if supporting dragging of nodes (and possibly zooming) is a requirement, go and use Zest, in the end it will help you a lot. However, if you only need to draw a static graph without complex user interaction, I suggest drawing it by hand using either an SWT Canvas or Draw2d.

How to draw a piechart in iPhone

I want to draw a piechart in my application. Do anyone know any code or tutorial to help me out. I found some in the following link
http://rajeev.name/blog/2009/01/18/drawing-pie-charts-using-iphone-sdk/
but if there is any other more efficient way to do it, I want to learn it.
I'm not sure if you know how to do pie charts on other platforms, but there really are some basic techniques that you should be aware of and understand, before embarking on creating pie charts on ANY platform.
See here for a pretty good discussion. There are many more out there, if you want to learn more.
Applying that to the iPhone isn't going to be child's play, but it's not too hard either. If you are looking for a library to do the work for you, look around and you'd probably find something to give you a head start.
KeepEdge offers an iPhone charting/graphing API:
http://www.keepedge.com/products/iphone_charting/
You can also check the source code of AppMobile, which has a pie chart embedded inside it:
http://github.com/omz/AppSales-Mobile/tree/master
I will recommend you to look at the "Animating Pie Slices Using a Custom CALayer" page!.
there is new, nice Pie Chart 3D library. 3D charts which you can rotate and scale with fingers + protocol for getting information about tapped slice
http://iphone.orpi.pl/?p=20