<https://lh3.googleusercontent.com/-sf00fCjZimg/UaY_epNCRMI/AAAAAAAAABo/Hd9e0ekY6Z0/s1600/hydrograph1.GIF>
I have a map that displays a hydrograph (Google Chart) for each point - http://wa.water.usgs.gov/projects/skagit/hydrographs.htm. I have a script that parses out a file for each point and creates the chart. I've been referring to https://developers.google.com/chart/image/docs/chart_params#gcharts_axis_styles_labelsfor help. The picture of the current hydrograph (Google Chart) is shown above. I'd like to put a 2nd Y-Axis on each chart on the right of the chart showing altitude. I just want to add the labels, they don't have to correspond to a particular point. I have the range for each chart I'd like to display. The max is simply the Altitude - max_y_value and the min is the Altitude - min_y_value. My script is correctly giving me those values. So the problem now is where to put those values. The URL generated for this chart is: * http://chart.apis.google.com/chart?cht=lxy&chd=t:7,12,17,22,26,30,34,39,42,44,48,51,55,59,62,66,69,72,76,79,82,86,89|12.2,13.0,65.9,87.2,87.7,85.8,43.8,31.3,28.2,25.0,22.0,38.4,26.0,58.6,88.0,88.4,88.0,87.2,66.1,41.4,37.3,29.2,28.3&chco=ff0000&chs=425x300&chxt=x,y,r,x&chxr=0,2006.503,2008.917|1,7.659999999999999,-0.7&chxl=0:|%20|Aug|%20|%20|Nov|%20|%20|Feb|%20|%20|May|%20|%20|Aug|%20|%20|Nov|%20|%20|Feb|%20|%20|May|%20|%20|Aug|%20|%20|Nov|2:||3:|2006|2007|2008|&chxp=0|2,50|3,4,47,90&chm=d,ff0000,0,-1,10&chxs=0,555555,10,0,lt * So I've specified that I want labels on the right, left, and two rows of labels on the bottom: *chxt=x,y,r,x *The range for the x and y axis are specified: *chxr=0,2006.503,2008.917|1,7.659999999999999,-0.7 *I have custom labels for the X axis: * chxl=0:|%20|Aug|%20|%20|Nov|%20|%20|Feb|%20|%20|May|%20|%20|Aug|%20|%20|Nov|%20|%20|Feb|%20|%20|May|%20|%20|Aug|%20|%20|Nov|2:||3:|2006|2007|2008| *If I specify another range to display as a second y-axis: *chxr=0,2006.503,2008.917|1,7.659999999999999,-0.7|2,92.34,100.7 *The values don't show up for that 2nd y-axis. If I remove the custom labels for the x-axis, the values for the 2nd y-axis are visible. * http://chart.apis.google.com/chart?cht=lxy&chd=t:7,12,17,22,26,30,34,39,42,44,48,51,55,59,62,66,69,72,76,79,82,86,89|12.2,13.0,65.9,87.2,87.7,85.8,43.8,31.3,28.2,25.0,22.0,38.4,26.0,58.6,88.0,88.4,88.0,87.2,66.1,41.4,37.3,29.2,28.3&chco=ff0000&chs=425x300&chxt=x,y,r,x&chxr=0,2006.503,2008.917|1,7.659999999999999,-0.7|2,92.34,100.7&chxl=0:|%20|Aug|%20|%20|Nov|%20|%20|Feb|%20|%20|May|%20|%20|Aug|%20|%20|Nov|%20|%20|Feb|%20|%20|May|%20|%20|Aug|%20|%20|Nov|2:||3:|2006|2007|2008|&chxp=0|2,50|3,4,47,90&chm=d,ff0000,0,-1,10&chxs=0,555555,10,0,lt * VS. * http://chart.apis.google.com/chart?cht=lxy&chd=t:7,12,17,22,26,30,34,39,42,44,48,51,55,59,62,66,69,72,76,79,82,86,89|12.2,13.0,65.9,87.2,87.7,85.8,43.8,31.3,28.2,25.0,22.0,38.4,26.0,58.6,88.0,88.4,88.0,87.2,66.1,41.4,37.3,29.2,28.3&chco=ff0000&chs=425x300&chxt=x,y,r&chxr=0,2006.503,2008.917|1,7.659999999999999,-0.7|2,92.34,100.7&chm=d,ff0000,0,-1,10&chxs=0,555555,10,0,lt * How can I display the values for the 2nd y-axis as well as display the custom labels for the x-axis? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
