2 Replies Latest reply: Nov 19, 2012 11:32 AM by 975042 RSS

    mobile DVT: dvtm:comboChart does not support property seriesVar as document

    hofespet
      Hi,

      Jdev 11.1.2.3.0 + mobile extension.

      Concerning the example in the documentation (http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/amxui.htm#CHDFAFJG)
      the dvtm:comboChart has a property seriesVar.
      But Jdeveloper IDE does not have this property in the property editor and also does not accept it (red underlines in XML-Code).
      The tag library for ADF mobile (http://docs.oracle.com/cd/E35521_01/apirefs.111230/e26230/toc.htm#dvtm:comboChart) also does not mention a seriesVar property.

      If it's a doc bug in http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/amxui.htm#CHDFAFJG how the correct example would look like?

      regards
      Peter
        • 1. Re: mobile DVT: dvtm:comboChart does not support property seriesVar as document
          Joe Huang-Oracle
          Hi, we are also checking with engineering team. The sample may be outdated since it was created a couple of months ago, during ADF Mobile beta testing period.

          Thanks,

          Joe Huang
          • 2. Re: mobile DVT: dvtm:comboChart does not support property seriesVar as document
            975042
            Joe is right. The 'seriesVar' property was removed after the Beta stage, but the documentation has not been updated.

            The example needs the following changes to work correctly:

            * remove the 'seriesVar' attribute
            * in the 'seriesStamp' facet, replace all 'series.name' references with 'row.series'.

            Here's the updated example:

            <dvtm:comboChart id="comboChart1"
            value="#{bindings.barData.collectionModel}"
            var="row"
            inlineStyle="width: 400px; height: 300px;"
            title="Combo Chart"
            animationOnDisplay="auto"
            animationDuration="1500" >
            <amx:facet name="dataStamp">
            <dvtm:chartDataItem series="#{row.series}"
            group="#{row.group}"
            value="#{row.value}" />
            </amx:facet>
            <amx:facet name="seriesStamp">
            <dvtm:seriesStyle series="#{row.series}" type="bar"
            rendered="#{(row.series eq 'Series 1') or
            (row.series eq 'Series 2') or
            (row.series eq 'Series 3')}" />
            <dvtm:seriesStyle series="#{row.series}" type="line" lineWidth="5"
            rendered="#{(row.series eq 'Series 4') or
            (row.series eq 'Series 5')}" />
            </amx:facet>
            <dvtm:yAxis axisMaxValue="80.0" majorIncrement="20.0" title="yAxis Title" />
            <dvtm:legend position="start" />
            </dvtm:comboChart>

            Sorry for the confusion.

            -Jan