Skip to main content

New To JMaki

1 reply [Last post]
rrhegde
Offline
Joined: 2004-11-17
Points: 0

Hi all

i am new to JMaki i installed necessary tool to my Netbeans.

i can add widgets in my page and display it.

i still worried how to change the values dynamic.

code below displays chart but all are hardcoaded. how can take data from db and display. Please help

<% library.jmaki.insert(
{
component : 'jmaki.charting.area',

args : {
xAxis : {
title : 'Months',
labels : ['January', 'February', 'March', 'April', 'May',
'June', 'July', 'August', 'September', 'October',
'November', 'December']
},
yAxis : {
title : 'Temperature',
tickCount : 3
}
},
value : {
data : [
{color: 'red', values : [10, 25, 25, 5, 35, 5, 15, 5, 10, 15, 25, 30] },
{color: 'blue', values : [15, 35, 15, 40, 40, 15, 20, 10, 15, 20, 30, 35 ] },
{color: 'pink', values : [20, 40, 30, 35, 45, 20, 25, 15, 20, 25, 30, 40] },
{color: 'gray', values : [25, 45, 25, 45, 50, 25, 35, 25, 25, 20, 35, 45] }
]
}
}
); %>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Just to confirm. You are using jMaki with Project Phobos (JavaScript on server)?