pentaho reporting: postprocessing script for scatter chart to display limit (static value) on axis - charts

I have a requirement to generate Scatterplot chart with limits on x and y axis as in the attached image on Pentaho Report Designer.
As there is no option available under scatter plot to display the limit line, I am trying to implement through Post Processing script in chart. But not able to achieve.
Kindly help to achieve the above requirement in Pentaho Report Designer charts.

Here is how you draw a line. Scripting language used is Groovy.
import org.jfree.chart.plot.ValueMarker;
def marker = new ValueMarker(100);
def plot = chart.getPlot();
plot.addDomainMarker(marker);

Related

Is it possible make vertical charts in Power BI?

I would like to have time or distance on the y-axis and values on the x-axis and make vertical charts not horizontal ones. For example, I would like time on the y-axis to start a 0 hours and continue all the way down to 13 hours. I would like to see values ranging from 1-5 on the x-axis. Basically, I would like a flipped or transposed line chart. I would also like to do the same thing with a bar chart. Is this possible in Power BI?
Vertical Line Chart:
Multiple Bar Charts:
It looks like there are a couple ways to accomplish this:
Download the multiple axes chart Power BI add-on from the Microsoft app store.
Make the visualization in Python or R from the Power BI visualization ribbon. For example, you could use Python and the Matplotlib library. In Matplotlib you can invert the axes to make the preferred chart.

How can I format point data labels in scatter chart using Google Data Studio?

When I'm using Excel I can insert a label on my scatter chart data points, but Google Data Studio only wants me to change the color of the points, I not found any documentation about how insert labels on the points, anyone has idea?
Its at the top of the Style section

How to graph a function in iOS-charts

I am using the iOS-charts library in (Swift 3) to plot my data into a scatter chart. I have a scatter chart and now would like a line chart to display a non-linear best fit line from the scatter data. Does the charts library have any easy functions for finding a non-linear best fit line, and if not how do I create a line from a function if a have to derive the best fit line function myself. I know how to create a line graph from data points but do not know if charts allows you to make one from a function. An example of what I'm trying to do is below. Any help is appreciated thanks.
Link to iOS-charts
http://www.appcoda.com/ios-charts-api-tutorial/

Stock Chart and Line char in same plot

I have try to combined stock chart and line graph using excel. But it cannot do. I can draw Stock chart and line graph separately. Is anyone know a way to darw stock chart and line chart in same plot. X axis is same.
If you can do this using Matlab, it also okay.
Yes you can plot in MATLAB.
To have a candlestick plot and a line plot of closing prices in the same chart,
candle(HighPrices, LowPrices, ClosePrices, OpenPrices)
hold on
plot(ClosePrices)
HighPrices, LowPrices, ClosePrices, OpenPrices are all columns. The hold on command is to let you plot multiple graphs in the same figure.
candle is for making stock-charts and plot by default makes line charts.
Refer to the MATLAB documentation on the MathWorks website for more clarity.
Combining a stock chart and line graph using Excel without VBA is not possible:

Create Normal Distribution (Bell Curve) chart using FLOT

Has anyone tried creating Normal Distribution chart using FLOT?
If so, can you please put me in a right direction with some suggestions and links to tutorial?
Thanks.
FLOT is simply a plotting engine. If you want to create a Bell Curve, you need to feed a probability density function a series of x values and plot the resulting points.
For instance I used the functions from here to create this:
Here's the jsFiddle that shows my work.