Ejemplo n.º 1
0
			$( "#plot" ).after( legend );
			</script>
<?php 
                break;
                /**
                 * -------------------
                 * Cumulative Plot
                 * -------------------
                 */
            /**
             * -------------------
             * Cumulative Plot
             * -------------------
             */
            case "cumulative":
                $data = $ecommerce->getCumulativeSellings();
                if (!count($data)) {
                    echo l10n("cart_plot_nodata", "Tere is no data about evaded orders to show.");
                    break;
                }
                $json .= "{";
                // Months
                $json .= "labels: [";
                foreach (l10n("date_full_months", array()) as $month) {
                    $json .= '"' . $month . '",';
                }
                $json = trim($json, ",");
                $json .= "],";
                // Close labels
                // Data sets
                $json .= "datasets:[";