I know it's relatively simple to combine graph types but was wondering if it the below was possible using HighCharts?
Well, very easy. You red lines would be a scatter type. Your line would be a line. Your funnel would be two spline types. You would need to calculate your curves for the splines however.
well you can do it with Highcharts. its as simple as it looks.
you can use a combination of spline and scatter chart.
Related
As you know, we shall set chart.polar to true to have a polar chart with HighChart. It seemed that polar chart is so different to other chart types, isn't it?
I've seen many other combination of different charts, but none of which could combine a polar chart.
Is it possible to combine a polar chart with a bar chart?
I guess it is possible since I believe HighCharts is powerful enough.
I'm trying to highlight a portion of a scatter/line plot, but using separate plots for each highlight and get them overlaid on top of the original plot is not working for me because the original plot is doing cubic curve smoothing and I need more points in the highlight than required for the curve to fit the one in the back.
I haven't found any delegate/data source way of specifying a line style for a given range in the documentation. Is there a way of achieving this?
If not possible, is my approach of multiple plots the way to go or is there something else you'd recommend?
There is no way to specify different line styles for separate data ranges. Your solution of multiple plots is the right one, although as you discovered, it won't work with smoothed lines.
You could do the smoothing yourself by turning off the curved line interpolation and adding additional plot points between the known data points. Then you would know where to separate the data for the individual plots.
I have a graph with two scatter plots. Both plots have data which was recorded over a period of time. For every data point in plot 1, there is a corresponding data point in plot 2. Said another way, Plot 1 and Plot 2 have varying y-values for a given x-value.
I am trying to connect the selected plot symbol for plot 1, with the corresponding plot symbol for plot 2. Is there a specific API to implement this with CorePlot? The delegate methods only ask for a plot symbol so there isn't anything that jumped out to me, and I haven't been able to find any other question here on SO from people with a similar issue.
I have attached an image to illustrate the effect I am trying to achieve.
If CorePlot does not currently support this behavior, my workaround is to add a third plot to the graph. This third plot will only display the plot points for the selected data point from plot 1 and the corresponding data point from plot 2.
Graph with two scatter plots where selected plot symbol is connected to corresponding plot symbol in a different plot.
As long as all three plots use the same plot space, your idea to use a third scatter plot to draw the connecting line is the best solution. Its datasource will be very simple since it only needs two points when it should draw the line, or zero when the selection is hidden. Since it's a separate plot, you can use a different line style to distinguish it from the other plots, too.
I have a scatter chart with multiple points. And I want to add a linear fit for those points(like simple linear regression). My question is should I calculate the regression with the formula and get the data array and populate as a line here(which is very complicated), or is there any function that I can directly use to get the linear regression line?
In case someone else stumbles upon this:
A user (not me) created a highcharts plugin that calculates various trend lines, including linear regression. It works fairly well, but the documentation is lacking a bit.
HighCharts Regression Plugin (Linear + Non-Linear)
Like this on the Highcharts demo page ?
I'm trying to draw a graph using the coreplot library. I'm looking for a way to change the dataLineStyle of the graph so that all the dots will be connected in a straight line, without any playful turns. If needed, I can provide more information.
Is there any way to achieve this?
[EDIT]
I have included a picture to better understand what I'm talking about. I would not like the Graph Line to go above or under the data points.
Regression lines aren't built into Core Plot. You can use one scatterplot to draw the data points with just plot symbols and no data line. Use a second scatter plot to draw the regression line. It only needs two data points, one for each end of the line. You'll have to compute the regression coefficients yourself.
The lines connecting the data points are controlled by the interpolation property. The default is CPTScatterPlotInterpolationLinear which is what you want.