HighStock Chart x轴终点

时间:2017-01-06 17:30:04

标签: highstock endpoint

我有一系列JSON,从早上8点开始,全天更新我的图表,时间一直持续到下午5点。问题是我不希望从我的api返回数据直到下午5点。相反,我想将我的图表设置为始终在x轴上从上午8点到下午5点,我已经玩过tickPositioner,但无济于事。

总而言之,这些数据显示正常:

<plugin>
    <groupId>com.soebes.maven.plugins</groupId>
    <artifactId>iterator-maven-plugin</artifactId>
    <version>0.5.0</version>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>iterator</goal>
      </goals>
      <configuration>
        <itemsWithProperties>
            <itemWithProperty>
                <name>test</name>
                <properties>
                    <skipDeployment>true</skipDeployment>
                </properties>
            </itemWithProperty>     
            <itemWithProperty>
                <name>prod</name>
                <properties>
                    <skipDeployment>false</skipDeployment>
                </properties>
            </itemWithProperty>     
        </itemsWithProperties>
      </configuration>
        <pluginExecutors>
            <pluginExecutor>    
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.8.2</version>
                </plugin>
                <goal>deploy-file</goal>
                <configuration>
                    <pomFile>${basedir}/target/checkout/@item@/myFile.pom</pomFile>
                    <file>${basedir}/target/checkout/@item@/myFile.jar</file>
                    <repositoryId>${mavenRepositoryId}</repositoryId>
                    <url>${mavenRepositoryUrl}</url>
                    <!-- if the deploy plugin would support a skip configuration we could do sth. like this -->
                    <skip>${skipDeployment}</skip>
                </configuration>                                    
            </pluginExecutor>
        </pluginExecutors>
      </configuration>
    </execution>
  </executions>
</plugin>

但我不想在我的api [1483690500000,null]等中返回以下剩余的一天,我只想在javascript中设置结束时间(下午5点),如果这是可能的?

0 个答案:

没有答案