Can Google Charts support dual y-axis (v-axis)?

It took me a while, to figure this out, but Google Charts does support dual Y-axis (v-axis). I want to use the Javascript API and not the HTML interface. This example can be tested here: http://code.google.com/apis/ajax/playground/?type=visualization#line_chart Replace all of that code with this code showing how to have two different Y-axis scales: function drawVisualization() { … Read more

Matplotlib: avoiding overlapping datapoints in a “scatter/dot/beeswarm” plot

Extending the answer by @user2467675, here’s how I did it: def rand_jitter(arr): stdev = .01 * (max(arr) – min(arr)) return arr + np.random.randn(len(arr)) * stdev def jitter(x, y, s=20, c=”b”, marker=”o”, cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, hold=None, **kwargs): return scatter(rand_jitter(x), rand_jitter(y), s=s, c=c, marker=marker, cmap=cmap, norm=norm, vmin=vmin, vmax=vmax, alpha=alpha, linewidths=linewidths, **kwargs) The stdev … Read more

Apache POI Line Chart colors

It works for me. Groovy, PieChart, random colors. def ctChart = chart.getCTChart() def ctPieChart = ctChart.getPlotArea().addNewPieChart() def ctPieSer = ctPieChart.addNewSer() byte[] b = new byte[3]; (0 .. rows).each { random.nextBytes(b) def x = ctPieSer.addNewDPt() x.addNewIdx().setVal(it) x.addNewBubble3D().setVal(false) x.addNewSpPr().addNewSolidFill().addNewSrgbClr().setVal(b) }

How can I change charts generated by apache poi to not use smoothed lines and show empty cells as gaps?

Thanks to Etienne for the code to set blanks as gaps. I got help from a POI developer and here is the solution that solves both issues mentioned in the original question. XSSFChart chart = (XSSFChart)drawing.createChart(anchor); // this will set blank values as gaps in the chart so you // can accurately plot data series … Read more