소스 검색

add mark line

ming 3 년 전
부모
커밋
1cbc661ffa
1개의 변경된 파일12개의 추가작업 그리고 5개의 파일을 삭제
  1. 12 5
      similar_web/index2.html

+ 12 - 5
similar_web/index2.html

@@ -248,7 +248,7 @@
             <div class="card card__notHover" style="line-height:28px">
               <!--<div id="bar" class="chart"></div>-->
               <div id='seo_string'>
-<a class="tag">sdv</a>
+                <a class="tag">sdv</a>
               </div>
             </div>
           </div>
@@ -341,13 +341,13 @@
           sitetitle.textContent = response.Title;
           countryrank.textContent = response.CountryRank;
           category.textContent = response.Category;
-          if(response.totalVisits!=-1){
+          if (response.totalVisits != -1) {
             $('#maxflow').html(response.totalVisits)
           }
-          else{
+          else {
             $('#maxflow').html("N/A")
           }
-          
+
           key_ary = [];
           val_ary = [];
 
@@ -368,7 +368,14 @@
             series: [{
               data: val_ary,
               type: 'line',
-              areaStyle: {}
+              areaStyle: {},
+              markLine: {
+                data: [{
+                  symbol: 'diamond',
+                  symbolSize: 30,
+                  name: 'average line',
+                }]
+              }
             }]
           };
           myChart.setOption(option);