I have the following chart that calculates premium for each month.

    <script type="text/javascript">
        google.load("visualization", "1", { packages: ["corechart"] });
        google.setOnLoadCallback(drawChart);
        function drawChart() {
    
    
    
            var options = {
                title: 'Monthly Total Production',
                curveType: 'function',
                legend: { position: 'bottom' },
                height: 600,
                vAxis: {
                    viewWindow: { min: 0 },
                    format: 'currency',
                },
    
    
    
    
            };
            $.ajax({
    
                type: "POST",
                url: "url",
                data: '{}',
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (r) {
                    var data = google.visualization.arrayToDataTable(r.d);
                    var chart = new 
google.visualization.LineChart($("#monthlyProductionChart")[0]);
                    var view = new google.visualization.DataView(data);
                    view.setColumns([0, 1, {
                        calc: "stringify",
                        sourceColumn: 1,
                        type: "string",
                        role: "annotation"
                    },]);
                    chart.draw(view, options);
                },
                failure: function (r) {
                    alert(r.d);
                },
                error: function (r) {
                    alert(r.d);
                }
            });
        }
    
    
    </script>



The chart displays total premium. Is there a way to show the difference in 
percentage between two points alongside the premium? I found a way in 
another post on how to show the percentage change, but that would replace 
the premium on the chart.


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/5a50455b-3aab-4e37-9701-e8548763101fn%40googlegroups.com.

Reply via email to