Hi,
Two answer for that right now:
- There should be a simple method, use a xy chart with dot stye, like this:
display scatter
{
chart "scatterplot" type:xy
{
data "test" value:[[1,3],[2,2],[4,1],[3,5],[6,4],[7,6],[1.5,7],[1.8,8],[3.5,9],[1.2,10],[0.11,11],[11,12]] style:dot color:°black;
}
}
However:
-- First, thanks for the question, I found that there is a bug right now... The style: dot is not working... I am on it :)
-- Second, and most importantly, you can not have two points with the same x value, which can be problematic for scatterplots.
So, second solution, datalist:
display nbantsdisp2
{
chart "scatterplot" type:xy
{
datalist value:[[[1,3],[1,2],[1,1],[1,5],[1,4],[1,6],[1,7],[1,8],[1,9],[1,10],[1,11],[1,12]]] inverse_series_categories:true;
}
}
However, it creates a serie for each point, which can be a little confusing (each point has a different color and marker). If you don't (inverse_series_categories:false), you have the same problem than with data statement (no identical x value)..
I will try to fix quickly the style:dot problem, and see if I can do something for the more general problem (no duplicate x)...
Philippe