7 Replies Latest reply on Dec 14, 2008 12:26 AM by Alain Raynaud

    X-axis labels not showing on seam line chart

    David Beaumont Newbie

      Hello All,


      I am trying to use Seam's chart module to show a line chart of network traffic data. At the moment it looks like:




      The problem I have is that unlike the y(range) axis, the x(domain) axis labels aren't being shown at all. I would like the x-axis labels to look like the chart below. This means not showing labels for every single bit of data. Is this possible?




      My code looks like:


      <p:linechart title="#{site.name} Network Traffic" legend="true"
          width="600" height="400" styleClass="chart"
          domainAxisLabel="Date" rangeAxisLabel="Data transferred (GigaBytes)"
          domainGridlinesVisible="true">
        <p:series key="Traffic from JANET">
          <ui:repeat value="#{organisationHome.getSiteTraffic(site)}" var="objArray">
            <p:data key="#{objArray[0].startTime}"
              value="#{objArray[0].quantity eq null ? 0 : objArray[0].quantity /1000}" />
          </ui:repeat>
        </p:series>
        <p:series key="Traffic to JANET">
          <ui:repeat value="#{organisationHome.getSiteTraffic(site)}" var="objArray">
            <p:data key="#{objArray[0].startTime}" 
              value="#{objArray[1].quantity eq null ? 0 : objArray[1].quantity /1000}" />
          </ui:repeat>
        </p:series>
      </p:linechart>
      



      Thanks,

      Dave