Hi Sergey, Thanks for info and reply.
Regards, On Tuesday, November 11, 2014 8:04:02 PM UTC+5:30, Sergey wrote: > > Hi Vikas, > > There is no way to customize a single x-axis label. If you need this > feature, please file a feature request here: > https://code.google.com/p/google-visualization-api-issues/, and we will > consider adding it in the future. > On Tue Nov 11 2014 at 5:10:50 AM Vikas Parab <[email protected] > <javascript:>> wrote: > >> Hi Everyone, >> >> I draw my chart by using following code: >> >> <script type="text/javascript"> >> google.load("visualization", "1", { packages: ["corechart"] }); >> google.setOnLoadCallback(drawChart); >> function drawChart() { >> var data = google.visualization.arrayToDataTable([ >> ['Year', 'A', 'B', 'C', 'D', 'E', 'F'], >> ['2004', 0, 2, 2, 1, 1, 1], >> ['2005', 1, 4, 3, 2, 3, 3], >> ['2006', 0, 3, 5, 4, 2, 5], >> ['2007', 1, 5, 3, 5, 2, 4] >> ] >> ); >> >> var options = { >> title: 'Company Performance', >> backgroundColor: "#ccc", >> colors:['red','green','blue','yellow','orange','pink'] >> }; >> >> >> var chart = new google.visualization.LineChart(document. >> getElementById('chart_div')); >> chart.draw(data, options); >> } >> </script> >> >> it works fine but I want to show x-axis label '2005' in bold and and in >> different color than other. >> >> I can change style for all x axis lable by adding following code in >> options: >> hAxis: {textStyle: { >> color: 'black', >> fontName: 'Arial Black', >> fontSize: 16 >> } >> } >> >> but don't understand how do that for single x axis label. >> >> Kindly help/guide. >> >> 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. >> > -- 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.
