Example #1
0
		    },
		    dataZoom : {
		        show : true,
		        realtime: true,
		        start : 75,
		        end : 100
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : true,
		            axisTick: {onGap:false},
		            splitLine: {show:false},
		            data : [
					     <?php 
getdatedata('172037', 2);
?>
		            ]
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value',
		            scale:true,
		            boundaryGap: [0.01, 0.01]
		        }
		    ],
		    series : [
		        {
		            name:'股市指數',
		            type:'k',
Example #2
0
">
<input type="submit" class="btn btn-primary" value="技術指標係數修改">
</form>
</div>



<!-- 使用Echart呈現股票線圖 -->
    <div id="main"  style="height:350px; width:1000px; padding-top:0;"></div>
	<div id="main2"  style="height:350px; width:1000px;  padding-top:0;"></div>
	<div id="main3" style="height:350px; width:1000px;  padding-top:0;"></div>
	<div id="main4"  style="height:350px; width:1000px;  padding-top:0;"></div>
    <script src="http://echarts.baidu.com/build/dist/echarts.js"></script>
    <script type="text/javascript">
    var axisData=[<?php 
getdatedata($Stockvisble, $period);
?>
];
        // Echart 基礎設定
        require.config({
            paths: {
                echarts: 'http://echarts.baidu.com/build/dist'
            }
        });    
     
    require(
            [
                'echarts',
                'echarts/chart/k',
				'echarts/chart/line',
				'echarts/chart/bar'