neuhausi / canvasXpress

CanvasXpress: A JavaScript Library for Data Analytics with Full Audit Trail Capabilities.
http://www.canvasXpress.org
290 stars 44 forks source link

Is there a way to mix Scatter2D and line charts? #113

Open grapecaptain opened 2 years ago

grapecaptain commented 2 years ago

Hi. I am trying to Visualize the correlation between DNA methylation and gene expression results using canvasXpress.

This is the chart i want. I want to express the results to be obtained from correlation analysis.

image

and this is the actual result by scatter2D chart

image

image

Although the correlation function is built-in, the slope is different from the result on the left that I analyzed. So I'm looking for a way to mix Scatter2D and line charts, for display an independent line chart in a Scatter2D chart.

Is there any way do it?

thanks.

neuhausi commented 2 years ago

You can any decoration you want look at this example: https://canvasxpress.org/examples/scatter2d-13.html The lines are drawn defining x and y coordinates