June 2008 - Posts
Google Intensity Map , another GeneXus user control
You can download it here and you can see how to use it in the following video.
In the sample I had only one Business Component called Country, after I created a WebPanel, drag and drop the IntensityMap and bound it to a DataProvider that takes data from Countries.
The DataProvider Code is
CountryInfo
{
Info
{
Name = "Population"
Name = "Area"
}
Countries
{
Country
{
CountryISO = CountryId
Values
{
Value = CountryPopulation
Value = CountryArea
}
}
}
}
Cardal : Something is changing...
Even if you don't read it in the news, even if you don't watch it on TV, in the society something is changing... and luckily my country is one of the main player in these good changes.
Probably you know about the OLPC and probably you know the first picture of the following video, but almost for sure you never see the others pictures. Why? Because even in Uruguay we never watch these pictures on TV
But our friend Fernando lives in Florida the first City in the world that go ahead with the OLPC program. To be more specific it began on Cardal in Florida. Fernando gave us these pictures. For me are shocking pictures. How many times did you go to school on sunday?
What is changing? Traditional things, traditional ideas.
We start thinking in the next version of GeneXus, we had been thinking a new code name for our version, we believe that traditional ways to do applications should change, so more than ever we choose a strong meaning name for our version:
Cardal
My First User Control on GeneXus X: Google Motion Chart
After Enrique wrote about Google Visualization API, and after Gonzalo showed us that create an User Control for Google Visualization Gadgets is an easy task, I tried to do my first User Control.
I choose Google Motion Chart. You can download it here
This sample is a simple chart showing Sales and Price for IPhone, WM and Nokia (N Serie). I wrote this "hard coded" code in GeneXus X
DataProvider1
TimeSerie
{
Category
{
Name = "IPhone"
Date = ctod("01/01/2007")
X = 0
Y = 0
}
Category
{
Name = "Nokia N"
Date = ctod("01/01/2007")
X = 400
Y = 9
}
Category
{
Name = "WM"
Date = ctod("01/01/2007")
X = 400
Y = 2.9
}
Category
{
Name = "IPhone"
Date = ctod("06/01/2007")
X = 499
Y = 2.3
}
Category
{
Name = "Nokia N"
Date = ctod("06/01/2007")
X = 599
Y = 11
}
Category
{
Name = "WM"
Date = ctod("06/01/2007")
X = 450
Y = 3.8
}
Category
{
Name = "IPhone"
Date = ctod("08/11/2008")
X = 199
Y = 4
}
Category
{
Name = "Nokia N"
Date = ctod("08/11/2008")
X = 699
Y = 12
}
Category
{
Name = "WM"
Date = ctod("08/11/2008")
X = 499
Y = 3
}
}
The right code should be:
TimeSerie
{
Category
{
Name = ItemName
Date = ItemDate
X = ItemPrice
Y = ItemSales
}
}
And in the Start Event of the Panel
WebPanel1
Event Start
&serie = DataProvider1() // The &serie is the data bound to the control
EndEvent
I think is a bit easier than write a bunch of javascript code.
And the data is almost real ;)
More Posts