Zoom in 2014: No Feb Data: Feb Data intertwined with March
Zoom in 2015 : No Feb Data: Feb Data intertwined with March
Zoom in 2016, Normal
Different Charts, Different MySQL Database. Same results:
Here's a basic mysql script - variable names changed to protect the innocent
<?php
include("conn.php");
$query="SELECT EXTRACT(YEAR FROM `date`) AS 'year',
EXTRACT(MONTH FROM `date`) AS 'month',
EXTRACT(DAY FROM `date`) AS 'day',
`close`,
`anot_code`,
`alerts`
FROM `mySQL_db_2014`
WHERE `symbol`='MNKD'
UNION ALL
SELECT EXTRACT(YEAR FROM `date`) AS 'year',
EXTRACT(MONTH FROM `date`) AS 'month',
EXTRACT(DAY FROM `date`) AS 'day',
`close`,
`anot_code`,
`alerts`
FROM `mySQL_db_2015`
WHERE `symbol`='MNKD'
FROM `mySQL_db_2015`
WHERE `symbol`='MNKD'
UNION ALL
SELECT EXTRACT(YEAR FROM `date`) AS 'year',
EXTRACT(MONTH FROM `date`) AS 'month',
EXTRACT(DAY FROM `date`) AS 'day',
`close`,
`anot_code`,
`alerts`
FROM `mySQL_db_2016`
WHERE `symbol`='MNKD' ORDER BY `year` ASC, `month` ASC, `day` ASC";
$tabletr=array();
$table['cols']=array(
array('label' => 'Date', 'type' => 'date','role' => 'domain'),
array('label' => 'Close', 'type' => 'number', 'role' => 'data'),
array('label' => '', 'type' =>'string', 'role' => 'annotation'),
array('label' => '', 'type' =>'string', 'role' => 'annotationText')
);
$table['rows']=$rows;
$chartdata=mysql_query($query);
while($r=mysql_fetch_assoc($chartdata)) {
$temp=array();
$r['date']= array($r['year'], $r['month']-1, $r['day']);
$r['date']=implode(",", $r[('date')]);
$temp[]=array('v' =>"Date(".$r['date'].")");
$temp[]=array('v' => (float) $r['close']);
$temp[]=array('v' => $r['anot_code']);
$temp[]=array('v' => $r['alerts']);
$rows[]=array('c' => $temp);
};
$table['rows']=$rows;
$jsondata=json_encode($table);
echo $jsondata;
?>
Use this link for resulting json data: better than sticking 3 years of data here:
http://www.stockshortdata.com/functions/googtest.php
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4cd512a5-8bf1-4f22-9354-9606259b38b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4cd512a5-8bf1-4f22-9354-9606259b38b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I know you're on it....just busting em on ya...
Thank You for always being helpful; I couldnt have done anything like this without your guidance..Just sayin...sniff sniff...
Dom
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4cd512a5-8bf1-4f22-9354-9606259b38b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4cd512a5-8bf1-4f22-9354-9606259b38b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/b5ab4150-af6a-4119-905b-fb16f0b2d3d9%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/hdp_NgVG6q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPn5zp58bwJZ2T%3D_gs_WDE7PeVEVXgioGzuBs8uN70G0g%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/hdp_NgVG6q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPn5zp58bwJZ2T%3D_gs_WDE7PeVEVXgioGzuBs8uN70G0g%40mail.gmail.com.