dimple.js scatterplot duplicating axis lables
NickName:mike01010 Ask DateTime:2015-06-11T07:31:25

dimple.js scatterplot duplicating axis lables

Using dimple.js, I am rendering a scatter plot with the code below. This works fine, but when i hover the mouse over any point, the x and y values are shown twice, once as decimal and below that as percentage. How can i simply keep the percentage x,y values in the hover-popup? Also, is there a way to display additional items in the hover-popup?
Here is the fiddle demonstarting the issue: http://jsfiddle.net/dizzy0ny/ch2187dd/52/

var svg = dimple.newSvg("#chartContainer", 600,600);
var myChart = new dimple.chart(svg);
myChart.setBounds(90, 35, 480, 400)
xAxis = myChart.addMeasureAxis("x", "x");
yAxis = myChart.addMeasureAxis("y", "y");
xAxis.showGridlines = true;
xAxis.tickFormat = '.1%'
yAxis.tickFormat = '.1%'
s1 = myChart.addSeries(["x","y","group"], dimple.plot.bubble, [xAxis, yAxis]);
s1.data = data_scatter

s2 = myChart.addSeries(["y","group"], dimple.plot.line, [xAxis, yAxis]);
s2.data = data_ser1      

myChart.addLegend(90, 480, 330, 20, "left");
myChart.draw();

Copyright Notice:Content Author:「mike01010」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30769074/dimple-js-scatterplot-duplicating-axis-lables

More about “dimple.js scatterplot duplicating axis lables” related questions

dimple.js scatterplot duplicating axis lables

Using dimple.js, I am rendering a scatter plot with the code below. This works fine, but when i hover the mouse over any point, the x and y values are shown twice, once as decimal and below that as

Show Detail

Seaborn Scatterplot - Order the X axis lables

I have the name of the day of the week on the x-axis of my seaborn scatterplot. I want to order it according to the following natural order cats = [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'F...

Show Detail

drawing scatterplot 3D in r

I would like to visualize my data in a scatterplot3d On my X and Y axis, I would like the same lables. Something like this: x<-c("A","B","C","D") y<-c("A","B",

Show Detail

axis orient / position with dimple.js

Is there a way to explicitly position/orient an axis using dimple.js? I know that the first x-axis is added to the bottom and the second is added to the top, so I can get the desired outcome like t...

Show Detail

autoscale and format x axis in dimple.js

I would like a chart that autoscales the x axis according to the data size and shows only specific numbers, and for the rest of data points only show the tick lines without numbers. Something like ...

Show Detail

Change x-axis Interval Display - dimple.js

I am working on creating a bubble chart using dimple.js. I am currently using the addCategoryAxis() function of create my x-axis based on the data I am using. The problem is that there are too many

Show Detail

Dimple.js Axis Labels

I have a dataset where each row has an id and a name property. The id property is the unique key, the names may be duplicated. I want the name to be shown on the category axis of a Dimple.js chart....

Show Detail

Align X axis of scatterplot and boxplot

I'm superimposing two images in R. One image is a boxplot (using boxplot()), the other a scatterplot (using scatterplot()). I noticed a discrepancy in the scale along the x-axis. (A) is the boxplot...

Show Detail

Change Axis Label - R scatterplot

I am using the CAR library scatterplot function trying to do something similar to R: Replace X-axis with own values. However the result is badly formatted. Does anyone know how to replace the x a...

Show Detail

How do you reduce the number of Y-axis ticks in dimple.js?

In dimple.js is there a way to, for example, reduce the number of y-axis ticks by half so that it would only show every other y tick instead of all of them?

Show Detail