Я создаю линейную диаграмму, используя диаграмму Google. У меня эти коды ниже от googling. Как вы добавляете свойства для стиля линии (пунктирная линия) к этим строкам кода?Пунктирная линия google chart json
$sth = mysql_query("SELECT * FROM table");
$rows = array();
//flag is not needed
$flag = true;
$table = array();
$table['cols'] = array(
array('label' => 'Month', 'type' => 'string'),
array('label' => 'a', 'type' => 'number'),
array('label' => 'b', 'type' => 'number'),
array('label' => 'c', 'type' => 'number'),
array('label' => 'd', 'type' => 'number')
);
$rows = array();
while($r = mysql_fetch_assoc($sth)) {
$temp = array();
$temp[] = array('v' => (string) $r['Month']);
// Values of each slice
$temp[] = array('v' => $r['a']);
// Values of each slice
$temp[] = array('v' => $r['b']);
// Values of each slice
$temp[] = array('v' => $r['c']);
// Values of each slice
$temp[] = array('v' => $r['d']);
$rows[] = array('c' => $temp);
}
$table['rows'] = $rows;
$jsonTable = json_encode($table);
//echo $jsonTable;