I established something, but I can't set year to appear to x-axis. When I replace year string to number I get control for years but years than became also new line i chart.
Can I use DataView two time in chart? On Sep 22, 12:09 pm, kkatusic <[email protected]> wrote: > I added DataView at to the bottom of code, but nothing changed. > > List is:http://tt.inspiration4web.com/EA_test_chart.php > > Maybe I'm missing somethig? > > Thx > > On Sep 22, 10:50 am, ChartMan <[email protected]> wrote: > > > > > > > > > Hi > > > You can use > > agoogle.visualization.DataView<http://code.google.com/apis/chart/interactive/docs/reference.html#Dat...>over > > your DataTable and for that column pass in a function with the 'calc' > > option that returns toString() of the row value. > > > var dataView1 = newgoogle.visualization.DataView(dataTable); > > dataView1.setColumns([{'calc': toStringFun, 'sourceColumn': 0, 'type': > > 'string'},...]); > > > HTH > > ChartMan > > > On Wed, Sep 21, 2011 at 1:03 PM, kkatusic <[email protected]> wrote: > > > Icreatedgooglelinechartwith "linear" control. First column that I > > > defined was year ( data.addColumn('string', 'Year'); ) and column > > > represents x-axis ofchart, example is on link: > > > >http://tt.inspiration4web.com/EA_test_chart.php > > > > I want to set up "year" instead "Sales" in control linear scroll bar. > > > The problem is that year must be string type and I can't set up string > > > value to linear bar control, have you any experience forgooglechart > > > and any suggestion that would help me. > > > > Thx > > > > -- > > > You received this message because you are subscribed to theGoogleGroups > > > "GoogleVisualization 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. -- 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.
