Hi Daniel,
Thanks for your reply.
I see, I'll just go back to using corecharts and keep track on further
developments with the material charts as I'm looking forward to using them
a fair bit within my site.
Cheers
On Tuesday, June 2, 2015 at 2:13:23 PM UTC+1, Daniel LaLiberte wrote:
>
> Hi Jack,
>
> The material charts don't yet support many of the options supported by the
> corecharts, including the explicit ticks option. If you want the material
> style (at least the fonts and colors) with the corecharts, you can add this
> option: { theme: 'material' }
>
>
> On Tue, Jun 2, 2015 at 8:40 AM, Jack Scotson <[email protected]
> <javascript:>> wrote:
>
>> HTML:
>> <script type="text/javascript"
>> src="https://www.google.com/jsapi?autoload={
>> 'modules':[{
>> 'name':'visualization',
>> 'version':'1',
>> 'packages':['line']
>> }]
>> }"></script>
>>
>> <div id="curve_chart" style="width: 750px; height: 500px"></div>
>>
>> Javascript:
>> function drawChart() {
>> var table = new google.visualization.DataTable();
>> table.addColumn('string', 'Date');
>> table.addColumn('number', 'Rating');
>> table.addRows([["Test", 5], ["Test2", 10], ["Test3",15],
>> ["Test4", 20]]);
>> var options = {
>> vAxis: {
>> ticks: [10,20,40, 80, 160]
>> }
>> };
>> var chart = new
>> google.charts.Line(document.getElementById('curve_chart'));
>> chart.draw(table, google.charts.Line.convertOptions(options));
>> }
>> google.setOnLoadCallback(drawChart);
>>
>> Hello,
>> With the code above, I'd expect to see 4 different plots of data on my
>> chart ranging from 5 to 20, but with the Y axis having ticks going from 10,
>> to 160.
>>
>> If I were to not use the Material line chart and use the 'normal'
>> corechart, this would display correctly with the vAxis ticks displaying
>> correctly.
>> Using it in the state it is in, the vAxis goes from 4-20. Is there a
>> reason for the vAxis ticks not taking effect when using the Material Line
>> 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 [email protected]
>> <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
> - 978-394-1058
> [email protected] <javascript:> 5CC, Cambridge MA
> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.