I have many panels displaying categoryCharts in separate Accordeon Tabs. I tried to stuff all these categoryCharts into rows of a table layout, but upon putting the second chart into the second table row I get the Error "More than one element with the name Name_of_my_X_axis"

What am I doing wrong here!

Here's the failing panel code:

<panel>
      <tableLayout cellSpacing="10">
        <row>
          <cell hAlign="Full" vAlign="Full">
            <categoryChart title="Vertreterumsätze" backgroundColor="#81FF54" plotBackgroundColor="#E1EBFF">
              <subtitle text="nach aktuell zugeordneten Kudnen, die letzten 4 Jahre + Prognose bis Jahresende"/>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="UMS_4" legendLabel="Umsatz 2014" color="blue"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="UMS_3" legendLabel="Umsatz 2015" color="red"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="UMS_2" legendLabel="Umsatz 2016" color="green"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="UMS_1" legendLabel="Umsatz 2017" color="violet"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="UMS_0" legendLabel="Umsatz 2018est" color="grey" gradientColor="orange"/>
              </barRenderer>
              <categoryAxis label="Vertreter" name="PEVT_X_ACHSE" position="Bottom"/>
              <rangeAxis label="Umsatz" position="Left" default="Y"/>
              <legend position="Right"/>
            </categoryChart>
          </cell>
        </row>
        <row>
          <cell hAlign="Full" vAlign="Full">
            <categoryChart title="Deckungsbeiträge MIT Berücksichtigung der Versandkosten" backgroundColor="#81FF54" plotBackgroundColor="#E1EBFF">
              <subtitle text="nach aktuell zugeordneten Kunden, die letzten 4 Jahre + Prognose bis Jahresende"/>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="DB_4" legendLabel="Deckungsbeitrag 2014" color="blue"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="DB_3" legendLabel="Deckungsbeitrag 2015" color="red"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="DB_2" legendLabel="Deckungsbeitrag 2016" color="green"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="DB_1" legendLabel="Deckungsbeitrag 2017" color="violet"/>
              </barRenderer>
              <barRenderer dataSource="pevt_4a1" categoryColumn="PEVT_X_ACHSE">
                <bar valueColumn="DB_0" legendLabel="Deckungsbeitrag 2018est" color="grey" gradientColor="orange"/>
              </barRenderer>
              <categoryAxis label="Vertreter" name="PEVT_X_ACHSE" position="Bottom"/>
              <rangeAxis label="Deckungsbetrag" position="Left" default="Y"/>
              <legend position="Right"/>
            </categoryChart>
          </cell>
        </row>
      </tableLayout>
    </panel>

asked 17 Feb, 12:21

dipr's gravatar image

dipr
1561537
accept rate: 0%


Hi Peter,

You have two categoryAxis tags with the same name (PEVT_X_ACHSE) in the same panel. If you rename one of them, the error will go away.

Kind Regards,
Yalim

link

answered 20 Feb, 20:24

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9
×8
×4
×3

Asked: 17 Feb, 12:21

Seen: 4,425 times

Last updated: 20 Feb, 20:24


© Copyright Gerger 2017