Hi,

We are using Google Charts within an MVC project.

We have managed to get the chart implemented however we are having a slight 
issue.

Whenever we slant the text 90 degrees the hAxis labels are repeating (see 
slanted-text-chart.PNG).

We would like the text to be slanted at 90 degree but only have the label 
appear once on the hAxis (see non-slanted-text-chart.PNG)

I have also attached the Data Table 

Things we've tried (that had no effect on the chart):

Setting the hAxis grid lines :

  hAxis: {
                                        slantedText: true,
                                        slantedTextAngle: 90,
                                        gridlines: {count: 7}
                                    },


Setting the hAxis minor grid lines:
hAxis: {
                                        slantedText: true,
                                        slantedTextAngle: 90,
                                        minorGridlines: { count: 5 }
                                    },

Is there a way we can achieve the desired result for the hAxis labels?

Thank you in advance.

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/0264c4c4-e86c-4b4d-ba35-8009b6fd10aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{"cols": [{"type": "string" ,"id": "Data" ,"label": "Label" }, {"type": 
"number" ,"id": "Performance" ,"label": "Performance" }, {"type": "number" 
,"id": "Index" ,"label": "Index" }], "rows" : [{"c" : [{"v": "2008"}, {"v": 0}, 
{"v": "0"}]}, {"c" : [{"v": "2008"}, {"v": 0.07103609}, {"v": "0.0052939"}]}, 
{"c" : [{"v": "2008"}, {"v": 0.12668605420031}, {"v": "0.01004200361909"}]}, 
{"c" : [{"v": "2008"}, {"v": 0.2561695363635767244989}, {"v": 
"0.0149322128833921499531"}]}, {"c" : [{"v": "2008"}, {"v": 
0.1724448443910106085854359609}, {"v": "0.0203848347038868859395080344"}]}, 
{"c" : [{"v": "2008"}, {"v": 0.1703467543419728951013723232}, {"v": 
"0.0251450217924156416122355739"}]}, {"c" : [{"v": "2008"}, {"v": 
0.2006195286631595369925119704}, {"v": "0.0290596303211819420571396405"}]}, 
{"c" : [{"v": "2008"}, {"v": 0.2262964581509613321144486284}, {"v": 
"0.0356242075149268259019105457"}]}, {"c" : [{"v": "2008"}, {"v": 
0.2946350043892502633363764546}, {"v": "0.044280462097198266626943406"}]}, {"c" 
: [{"v": "2008"}, {"v": 0.2536718466058713125292291681}, {"v": 
"0.0502727522448044097205021327"}]}, {"c" : [{"v": "2009"}, {"v": 
0.3515837431929745226248932191}, {"v": "0.0538938721372665239162923827"}]}, 
{"c" : [{"v": "2009"}, {"v": 0.3600761493265789394429022107}, {"v": 
"0.0559040587700424247113450796"}]}, {"c" : [{"v": "2009"}, {"v": 
0.3963435319016766954684048082}, {"v": "0.0586957635110245398780394049"}]}, 
{"c" : [{"v": "2009"}, {"v": 0.5824759850698170088066736223}, {"v": 
"0.06056847986014155607638427"}]}, {"c" : [{"v": "2009"}, {"v": 
0.7166552315770763418552976434}, {"v": "0.0621964524767268733649615199"}]}, 
{"c" : [{"v": "2009"}, {"v": 0.768808247505526867366666699}, {"v": 
"0.0636140598622023130501543975"}]}, {"c" : [{"v": "2009"}, {"v": 
0.8277551974002465546431547601}, {"v": "0.0653400927585466949637721881"}]}, 
{"c" : [{"v": "2009"}, {"v": 0.8832052690279357545686078606}, {"v": 
"0.0665258162817869574352668665"}]}, {"c" : [{"v": "2009"}, {"v": 
0.9843143716015187224378209598}, {"v": "0.0675213114787043773813369446"}]}, 
{"c" : [{"v": "2009"}, {"v": 0.8813070251201866043410957235}, {"v": 
"0.067893545484803886810686043"}]}, {"c" : [{"v": "2009"}, {"v": 
0.7926867596000528814148514141}, {"v": "0.0683966194551463230737236891"}]}, 
{"c" : [{"v": "2009"}, {"v": 0.7875914239501092471105347961}, {"v": 
"0.0689714168364131917955373524"}]}, {"c" : [{"v": "2010"}, {"v": 
0.8324510307341372386667736668}, {"v": "0.0694682747509587566470839182"}]}, 
{"c" : [{"v": "2010"}, {"v": 0.8199623455488851804854603909}, {"v": 
"0.0699244029701400405567938995"}]}, {"c" : [{"v": "2010"}, {"v": 
0.7553205589672107668679417116}, {"v": "0.0705437715077754249248718219"}]}, 
{"c" : [{"v": "2010"}, {"v": 0.7334403126676285879378561314}, {"v": 
"0.0710465952118149119642047849"}]}, {"c" : [{"v": "2010"}, {"v": 
0.5756823366281854448296549579}, {"v": "0.0715338143079767665676573017"}]}, 
{"c" : [{"v": "2010"}, {"v": 0.5016489020417101517043336197}, {"v": 
"0.0721933433706833262674796948"}]}, {"c" : [{"v": "2010"}, {"v": 
0.5157361557050548225624007972}, {"v": "0.0728092005051820130632544725"}]}, 
{"c" : [{"v": "2010"}, {"v": 0.5133382611067294258331070791}, {"v": 
"0.0735611324738160951362105076"}]}, {"c" : [{"v": "2010"}, {"v": 
0.5692878748247237083682886226}, {"v": "0.0741935566013450954596942978"}]}, 
{"c" : [{"v": "2010"}, {"v": 0.570287040414624609953406712}, {"v": 
"0.0748073507995871040472399671"}]}, {"c" : [{"v": "2010"}, {"v": 
0.5842745292558219201290276776}, {"v": "0.0755185508236111908339880258"}]}, 
{"c" : [{"v": "2010"}, {"v": 0.6490162247487669340594844195}, {"v": 
"0.0761614958132935456038685838"}]}, {"c" : [{"v": "2011"}, {"v": 
0.6301331750575463290208758575}, {"v": "0.0768206339678642297676154973"}]}, 
{"c" : [{"v": "2011"}, {"v": 0.6130485806176874652950358583}, {"v": 
"0.0774217152457450915806717803"}]}, {"c" : [{"v": "2011"}, {"v": 
0.59916105499334529123945290}, {"v": "0.0781280621480430496052611529"}]}, {"c" 
: [{"v": "2011"}, {"v": 0.5843744282899598739374602112}, {"v": 
"0.0788051157897913991599827609"}]}, {"c" : [{"v": "2011"}, {"v": 
0.6093519168707639794544981383}, {"v": "0.0796059128272421613155792161"}]}, 
{"c" : [{"v": "2011"}, {"v": 0.6192429937518516948722254839}, {"v": 
"0.0803486816952673039225643346"}]}, {"c" : [{"v": "2011"}, {"v": 
0.6032573411446352893849384123}, {"v": "0.0810488556758740066622365485"}]}, 
{"c" : [{"v": "2011"}, {"v": 0.5817767549948187627605829628}, {"v": 
"0.0817493645238634162598136112"}]}, {"c" : [{"v": "2011"}, {"v": 
0.5818767232857344353063894316}, {"v": "0.0823936544453738293105379562"}]}, 
{"c" : [{"v": "2011"}, {"v": 0.5941656749794847589831662955}, {"v": 
"0.0832013365903209672619694796"}]}, {"c" : [{"v": "2011"}, {"v": 
0.7776005802029441440542269017}, {"v": "0.0839707236676877063418059839"}]}, 
{"c" : [{"v": "2011"}, {"v": 0.7844942752370233797098421585}, {"v": 
"0.0848125353316880326145510304"}]}, {"c" : [{"v": "2012"}, {"v": 
0.6209414668690874178782335601}, {"v": "0.0858503754842398585553533714"}]}, 
{"c" : [{"v": "2012"}, {"v": 0.5926669147894645340128323474}, {"v": 
"0.0868495749997604560731960076"}]}, {"c" : [{"v": "2012"}, {"v": 
0.5528027804456671946193979563}, {"v": "0.0878782672540019793472647269"}]}, 
{"c" : [{"v": "2012"}, {"v": 0.5086424668922948207048974359}, {"v": 
"0.0888695419311238259508459545"}]}, {"c" : [{"v": "2012"}, {"v": 
0.5945650864946918230053958825}, {"v": "0.0898635600472573295803182223"}]}, 
{"c" : [{"v": "2012"}, {"v": 0.6346289967167460385190351256}, {"v": 
"0.0909696625743492910441092873"}]}, {"c" : [{"v": "2012"}, {"v": 
0.6441204699861818243916959031}, {"v": "0.0921832572269969971954667545"}]}, 
{"c" : [{"v": "2012"}, {"v": 0.6996705162764472484487823278}, {"v": 
"0.0930194327287299860965196038"}]}, {"c" : [{"v": "2012"}, {"v": 
0.7697074625075326262933400577}, {"v": "0.0938048655628945241772287018"}]}, 
{"c" : [{"v": "2012"}, {"v": 0.7892898064924172270630637534}, {"v": 
"0.0945447151739612660333821793"}]}, {"c" : [{"v": "2012"}, {"v": 
0.8534320706536786856529254859}, {"v": "0.0950366035689604442263375813"}]}, 
{"c" : [{"v": "2012"}, {"v": 0.8514338855383069546619230669}, {"v": 
"0.0955453575749785832487251377"}]}, {"c" : [{"v": "2013"}, {"v": 
0.9388552610324318401085406827}, {"v": "0.0960383420304337478614012315"}]}, 
{"c" : [{"v": "2013"}, {"v": 1.0053953970038295678344593219}, {"v": 
"0.0964810319167798400521624515"}]}, {"c" : [{"v": "2013"}, {"v": 
1.0470578674017095578338381029}, {"v": "0.0969163239216404824808647595"}]}, 
{"c" : [{"v": "2013"}, {"v": 1.0309723118560323383164311648}, {"v": 
"0.0974310957832936691428882045"}]}, {"c" : [{"v": "2013"}, {"v": 
1.0185833807537105410527009347}, {"v": "0.0979049665304528953492241036"}]}, 
{"c" : [{"v": "2013"}, {"v": 1.0467579399630847237633927027}, {"v": 
"0.0983249042011011282771662283"}]}, {"c" : [{"v": "2013"}, {"v": 
1.0914177683939118401881179412}, {"v": "0.0988423140802212250076863185"}]}, 
{"c" : [{"v": "2013"}, {"v": 1.0822259873018205976504911628}, {"v": 
"0.0992931580932651989740947221"}]}, {"c" : [{"v": "2013"}, {"v": 
1.150964223372029569038069412}, {"v": "0.0997748573622100868516331807"}]}, {"c" 
: [{"v": "2013"}, {"v": 1.3069239497100007460770601167}, {"v": 
"0.1002741551474525302310638222"}]}, {"c" : [{"v": "2013"}, {"v": 
1.3963435286250504718960440139}, {"v": "0.1007137036696923860423658299"}]}, 
{"c" : [{"v": "2013"}, {"v": 1.4521931901718916232041475949}, {"v": 
"0.1012180506887138390936504419"}]}, {"c" : [{"v": "2014"}, {"v": 
1.5690879889288587092175614766}, {"v": "0.1017225076655538320162008522"}]}, 
{"c" : [{"v": "2014"}, {"v": 1.5518034218481442407078166447}, {"v": 
"0.1021671628696476495428025909"}]}, {"c" : [{"v": "2014"}, {"v": 
1.6673993257988044018871661193}, {"v": "0.1026608235418969647250328122"}]}, 
{"c" : [{"v": "2014"}, {"v": 1.8523327617817680518863612146}, {"v": 
"0.1031306673188081670217021487"}]}, {"c" : [{"v": "2014"}, {"v": 
1.7845938519553175551293327767}, {"v": "0.1036047818483151175838064061"}]}, 
{"c" : [{"v": "2014"}, {"v": 1.7650115019967654995078168082}, {"v": 
"0.104059897424301544255146792"}]}, {"c" : [{"v": "2014"}, {"v": 
1.783394957468941194607844479}, {"v": "0.1045680961950859502559674361"}]}, {"c" 
: [{"v": "2014"}, {"v": 1.8291536922302348409530779815}, {"v": 
"0.1050669081016466891202435284"}]}, {"c" : [{"v": "2014"}, {"v": 
1.9305624430052738246391682993}, {"v": "0.1056034180855300385878114066"}]}, 
{"c" : [{"v": "2014"}, {"v": 1.8146666109030113591140157188}, {"v": 
"0.1061681603114881273315220607"}]}, {"c" : [{"v": "2014"}, {"v": 
1.8786090811028616099658242823}, {"v": "0.1066477948257991885835330087"}]}, 
{"c" : [{"v": "2014"}, {"v": 1.9651311463926622110904060662}, {"v": 
"0.1071821950459205670116999968"}]}, {"c" : [{"v": "2015"}, {"v": 
1.8672192839458269368783907694}, {"v": "0.1077024488875506946269331245"}]}, 
{"c" : [{"v": "2015"}, {"v": 1.9386549055176236366799411241}, {"v": 
"0.1081866145509349541600476107"}]}, {"c" : [{"v": "2015"}, {"v": 
1.9631329898975647311101576629}, {"v": "0.1087248607896223432672831458"}]}, 
{"c" : [{"v": "2015"}, {"v": 1.9936055236210423980727741022}, {"v": 
"0.1092530573133025193516156795"}]}, {"c" : [{"v": "2015"}, {"v": 
2.0978117344560814355327281396}, {"v": "0.1097644229727239518130367743"}]}, 
{"c" : [{"v": "2015"}, {"v": 2.1951242238140706584915483885}, {"v": 
"0.1102958891548855893135600376"}]}, {"c" : [{"v": "2015"}, {"v": 
2.4234186932661452015636555783}, {"v": "0.1108420325998019859860874846"}]}, 
{"c" : [{"v": "2015"}, {"v": 2.6581073617882562604356782508}, {"v": 
"0.1113329136940078384836947367"}]}, {"c" : [{"v": "2015"}, {"v": 
2.7865917616967439248396500608}, {"v": "0.111939701464884766763506834"}]}, {"c" 
: [{"v": "2015"}, {"v": 2.5552999588930533687388187721}, {"v": 
"0.1124853302763935857185576868"}]}, {"c" : [{"v": "2015"}, {"v": 
2.5653909667663795221153101614}, {"v": "0.1130607076892125364810913248"}]}, 
{"c" : [{"v": "2015"}, {"v": 2.6371262408247127337985227692}, {"v": 
"0.11356369982301729162632713"}]}, {"c" : [{"v": "2016"}, {"v": 
2.6305321673213599378592733854}, {"v": "0.1140949810642028531761620507"}]}, 
{"c" : [{"v": "2016"}, {"v": 2.7809966685702598433959006834}, {"v": 
"0.1146558164776705728924509307"}]}, {"c" : [{"v": "2016"}, {"v": 
2.5944646008233477872558229795}, {"v": "0.1152284040240369874890400538"}]}, 
{"c" : [{"v": "2016"}, {"v": 2.4441998054182281446834869278}, {"v": 
"0.1157498848257586271843899289"}]}, {"c" : [{"v": "2016"}, {"v": 
2.3395939466079878867644179362}, {"v": "0.1163402169323210878164469178"}]}, 
{"c" : [{"v": "2016"}, {"v": 1.9168744900748473352347627662}, {"v": 
"0.1169586582490994243758863512"}]}, {"c" : [{"v": "2016"}, {"v": 
1.9692273993163128169132835064}, {"v": "0.117604930528762353302830239"}]}, {"c" 
: [{"v": "2016"}, {"v": 2.0353678007120294866407438014}, {"v": 
"0.1183255510119179939806163709"}]}, {"c" : [{"v": "2016"}, {"v": 
2.0557493848834705510346904038}, {"v": "0.1186920262949845995072438189"}]}, 
{"c" : [{"v": "2016"}, {"v": 2.0189826082845526333646410089}, {"v": 
"0.1190145452061654435672817573"}]}, {"c" : [{"v": "2016"}, {"v": 
2.0976117084190629782453597475}, {"v": "0.1194395469304347452027486109"}]}, 
{"c" : [{"v": "2016"}, {"v": 2.2488754914331489450335986704}, {"v": 
"0.1198377203828824315372697766"}]}, {"c" : [{"v": "2017"}, {"v": 
2.2943347319719289950171922931}, {"v": "0.1202283197797519809293899763"}]}, 
{"c" : [{"v": "2017"}, {"v": 2.3027270167582801644127086403}, {"v": 
"0.1205371667275152585505322091"}]}, {"c" : [{"v": "2017"}, {"v": 
2.5406128328397603180600776027}, {"v": "0.1209252087483529970845682584"}]}, 
{"c" : [{"v": "2017"}, {"v": 2.7564184959205929690863164227}, {"v": 
"0.1212518351449301796643887307"}]}, {"c" : [{"v": "2017"}, {"v": 
2.8531315845942291885217799431}]}, {"c" : [{"v": "2017"}, {"v": 
2.8233584368400695795820721495}]}]}

Reply via email to