Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Line Charts, place circle on annotation
    primarykey
    data
    text
    <p>i am new to google charts i want to make a graph for cricket rate rate and wicket that should look something like this</p> <p><img src="https://i.stack.imgur.com/IV3JX.png" alt="enter image description here"></p> <p>i have searched google and found out that i might do it with the help of annotations and i have written this code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawVisualization); function drawVisualization() { var data = new google.visualization.DataTable(); data.addColumn('number', 'Overs'); data.addColumn('number', 'Run-rate'); data.addColumn({type: 'string', role:'annotation'}); data.addColumn({type: 'string', role:'annotationText'}); data.addRows([ [1, 6, null, null], [2, 6, null, null], [10, 2, null, null], [20, 3.2, null, 'Shoaib Malik'], [21, 3, '2', 'Shahid Afridi'], [30, 4, null, null], [40, 5, 'B', 'This is Point B'], [50, 6, null, null], ]); var options = { title: 'Run Rate', pointSize:0, hAxis: { gridlines: { color: 'transparent' } }, }; new google.visualization.LineChart(document.getElementById('chart_div')). draw(data, options); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="chart_div" style="width: 900px; height: 500px;"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and this is the output of the code:</p> <p><img src="https://i.stack.imgur.com/cSWBM.png" alt="enter image description here"></p> <p>now the problem is that i want to show circle like the first image instead of text 2,B i cant do it using pointSize because i want circle where wicket falls, not where the over ends... can any1 tell me how to do this ? either i can replace text with circle or any other way out</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload