Total Pageviews

Wednesday, May 25, 2011

todays Tips

addAttribute: In my early age of programming , i used to be very fasicinated with this method.It is used to set the attribute of any element.But when i used it i come to know that it does not work well with IE :(So better to user Jquery addClass and removeClass for adding or removing classes dynamically.

opacity:It is used to reduce the opacity of iamge,div ,input box etc.
its syntax is opacity=0.4 for mozilla and chrome.
For IE use in the range of 0 to 100. ,menas 0.40 in mozilla means 4o in IE
For IE syntax is
opacity:alpha{filter:40}

Monday, May 23, 2011

Google Chart API Customization

1) To modify a horizontal chart to vertical one.
just change the method barchart to columnchart

2) To specify colors to the bar graph,
pass array of color codes to the graph.

3) You can give legend to the chart by specifying the position to the legend
top,bottom,right.

4) To make a vertical chart to stacked one specify isStacked:true.