Dear asgallant, here is the source elements.

here the data table columns containing cuYear and pastyr with money
values.
Objective is to custom format the tooltip text and show Y Axis Lables
with cuYear values with the $ sign.
Hope it helps to understand the objective.

 google.load('visualization', '1', { packages: ['corechart'] });

 var data = new google.visualization.DataTable();
        data.addColumn('string', 'x');
        data.addColumn('number', cuYear);
        data.addColumn('number', pastyr);

 var formatter = new google.visualization.NumberFormat(
            { prefix: '$'}
        );
        formatter.format(data, 1);
        formatter.format(data, 2);

        new
google.visualization.LineChart(document.getElementById('visualization')).
            draw(data,
            {
                curveType: "none",
                titlePosition: 'out',
                chartArea: { left: 70, top: 30 },
                hAxis: { slantedText: false, textStyle: { color:
'#94511A', fontName: 'Arial,Helvetica,sans-serif', fontSize: 11} },
                vAxis: { textStyle: { color: '#94511A', fontName:
'Arial,Helvetica,sans-serif', fontSize: 11 }, minValue: 0 },
                width: 715,
                height: 270,
                legend: 'right',
                pointSize: 3,
                backgroundColor: '#FFFDEC',
                legendBackgroundColor: "#FFFBD0",
                legendHeight: 375,
                legendTextStyle: { color: '#94511A', fontName:
'Arial', fontSize: 10 },
                title: 'Title',
                titleColor: "#94511A",
                titleTextStyle: { color: '#94511A', fontName:
'Arial,Helvetica,sans-serif', fontSize: 11 }
            });
    }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to