I was looking for a simple way to make rating stars, I found this post http://css-tricks.com/star-ratings/ that is a very simple way to do it, but I didn't know what to make when there was already a rating that I want to show.
So I made this script http://jsfiddle.net/dn3Kr/, actually it will be part of a wordpress plugin, I hope it is useful for you.
Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts
Wednesday, May 21, 2014
Friday, December 3, 2010
Protovis: Placing the Visualizations
If you want to place the visualization inside a div or any other container, there are two ways to do it(or at least I know two ways), but only one always work.
The first is to place the script tags where you build and render the visualization inside the div
tags, something like this:
The other way, an this always work is to specify where it will be shown, something like this:
So It will be shown inside the div you specified.
Hope this helps you.
The first is to place the script tags where you build and render the visualization inside the div
tags, something like this:
<div>
<script>
...
vis.render();
</script>
</div>
The other way, an this always work is to specify where it will be shown, something like this:
<script>
...
var vis = new pv.Panel()
.canvas($("vocabulary_chart"))
....
</script>
So It will be shown inside the div you specified.
Hope this helps you.
Etiquetas:
Charts,
Javascript,
Multiple,
Protovis
Subscribe to:
Posts (Atom)