I helped someone else do something similar recently (see this 
thread<https://groups.google.com/forum/#!msg/google-visualization-api/oaVQYRmTWKg/cBARJyn5MXYJ>).
 
 That example is a bit more complicated than what you are asking here (they 
also wanted to be able to add and remove columns from the chart using 
CategoryFilter controls), but should give you a good idea of what’s 
possible.

On Friday, August 17, 2012 1:32:13 PM UTC-4, kasimir wrote:
>
> Thanks for the reply, 
> I would like to compare the data on a relative basis (%), similar like two 
> (or more) stocks can be compared in Google Finance in a specified timeframe 
> where at t=0 both data-value are 0% and from there on the performance can 
> be compared. 
> Here is an example from Google Finance where the stocks of Google (in red) 
> is compared against Apple (in blue) in a time-frame of 1 month: 
>
> http://www.google.com/finance?chdnp=1&chdd=1&chds=1&chdv=1&chvs=Linear&chdeh=0&chfdeh=0&chdet=1345233600000&chddm=8993&chls=IntervalBasedLine&cmpto=NASDAQ:GOOG&cmptdms=0&q=NASDAQ:AAPL&ntsp=0
>
> Now I would like to use my own data and compare that to another dataset or 
> even compare my data against a stock. 
>
> I'm asking because I have written a piece of software in PHP which tracks 
> performance data of companies and clients which is then visualized in a 
> google line chart, but it would be great to compare the data against each 
> other or against other market relevant data (like stocks or market indexes) 
> in a relative way. 
>
> Hope I'm not the only one who can use this? :) 
>
> On Thursday, August 16, 2012 11:29:50 PM UTC-4, asgallant wrote:
>>
>> What you want is most likely possible, but it depends on exactly how you 
>> want to compare the data.  The chart's won't do everything for you in many 
>> cases, but you should be able to write javascript to format the data 
>> however you need for a given method of comparison.
>>
>> On Thursday, August 16, 2012 8:19:54 PM UTC-4, kasimir wrote:
>>>
>>> I have looked around but couldn't find an answer. 
>>>
>>> I use a line-chart which gets its data from an XML file (updated daily 
>>> with date and a value per entry) and this works great. 
>>> Now my question,  is there a way two data sources can be compared 
>>> against each other on a relative basis, kinda like how its done at Google 
>>> Finance when you compare one stock against an other, where the chart turns 
>>> relative and compares the performance? 
>>>
>>> Also is there a way that my data source can be compared with the Dow 
>>> Jones (for example) on a relative basis? 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/bESrK4PR25QJ.
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.

Reply via email to