I'm not a javascript expert but i know how to use it. But i don't understand this code:
d2 = [[0, 3]]
What does it mean? I can't find it on google. I'm lost, i tried to change 0 by any other number but it changed nothing.
This code is part of the pie chart example on the flotr2 website: http://humblesoftware.com/flotr2/index#!basic-pie
Its an array containing one single item in it which happens to be an array that contains two elements: 0 and 3. You can extend it to be a matrix.
Or maybe an array of x-y points.
This is called an array literal. An array can contain anything, including arrays, objects etc.
Image taken from json.org