高图表(在Spago BI中) - 如何允许重复?

时间:2015-10-20 03:24:18

标签: highcharts spagobi

如何允许我的图表输入重复数据?

这是数据集 enter image description here

这是结果图表 enter image description here

这是我的模板。缺少什么?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- see highcharts' documentation to view all possible options (http://www.highcharts.com/ref) -->

 <!-- div properties -->
<HIGHCHART  width='100%' height='100%'>

  <!-- chart object properties -->
  <CHART zoomType='xy' />

  <!-- title object properties --> 
  <TITLE text='Blabla'> 
  </TITLE>

  <!-- subtitle object properties --> 
  <SUBTITLE text='Source: qweqwe'> 
  </SUBTITLE>

  <!-- xAxis object properties  -->
   <X_AXIS showEmpty='true' categories="['00:00-00:59', '01:00-01:59', '02:00-02:59', '03:00-03:59', '04:00-04:59', '05:00-05:59', '06:00-06:59', '07:00-07:59', '08:00-08:59', '09:00-09:59', '10:00-10:59', 
    '11:00-11:59','12:00-12:59','13:00-13:59','14:00-14:59','15:00-15:59','16:00-16:59','17:00-17:59',
    '18:00-18:59','19:00-19:59','20:00-20:59','21:00-21:59','22:00-22:59','23:00-23:59']">
        <LABELS>
            <STYLE  color='#89A54E' />
        </LABELS>
        <TITLE text='Time'>
          <STYLE  color='#89A54E' />
        </TITLE>

   </X_AXIS> 

  <!--<X_AXIS alias='D' title='Weight'/> -->

  <!-- yAxis object properties  -->
  <Y_AXIS_LIST>
    <Y_AXIS alias='A'>
        <LABELS>
            <STYLE  color='#89A54E' />
        </LABELS>
        <TITLE text='Transaction Count'>
          <STYLE  color='#89A54E' />
        </TITLE>
    </Y_AXIS>


  </Y_AXIS_LIST>

  <!-- tooltip object properties 
  <TOOLTIP  backgroundColor='#FCFFC5' crosshairs='true' enabled='true' shadow='true' >
    <STYLE color='#FF00FF' fontWeight='bold' fontSize='16px' padding='5px' />
  </TOOLTIP> -->

  <!-- legend object properties -->
    <LEGEND layout='vertical'
         align='left'
         verticalAlign='top'
         x='1200'
         y='80'
         floating='true'
         borderWidth='1'
         backgroundColor='#FFFFFF'
         shadow='true'/>

  <SERIES_LIST allowPointSelect='true'>
      <SERIES name='Transaction Count' color='#89A54E' type='column' alias='A' />
      <!--<SERIES name='Rainfall' color='#4572A7' type='column'  alias='A' />-->

  </SERIES_LIST>

</HIGHCHART>

我试过放一些像showempty但仍然没有运气。

我目前正在使用此

进行反复试验

http://api.highcharts.com/highcharts#xAxis

1 个答案:

答案 0 :(得分:0)

我在结果集中将0 -23作为B放置

  <SERIES name='Transaction Count' color='#89A54E' type='column' alias='B,A'