ICEfaces
  1. ICEfaces
  2. ICE-1925

ice:outputChart disable legend

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Gentoo Linux, Sun-JDK 1.5.0_11, JBoss 4.0.5 GA, MyEclipse 5.5

      Description

      Hi,
      it would be nice, if ice:outputChart can create a chart without legend for example to implement a scrolling chart with ice:panelGroup.
      I've done it simple on the 1.6.0 source:
      In the JSP:
      <ice:outputChart legendPlacement="none" .../>

      In AbstractChart.java:

      public LegendProperties getLegendProperties() {
           LegendProperties legendProperties = new LegendProperties();
           if ("none".equals(outputChart.getLegendPlacement())) {
           return null;
           }
          legendProperties.setPlacement(legendPlacementMap.getLegendPlacement(
      String.valueOf(outputChart.getLegendPlacement())));
          Object legendColumns = outputChart.getLegendColumns();
          if (legendColumns instanceof Integer) {
          legendProperties.setNumColumns(((Integer)outputChart.getLegendColumns()).intValue());
          }else if (legendColumns instanceof String) {
          legendProperties.setNumColumns(Integer.parseInt(outputChart.getLegendColumns().toString()));
          }
          return legendProperties;
          }

      The result is a nice chart without legend.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Yip Ng [ yip.ng ]
        Ken Fyten made changes -
        Fix Version/s 1.6.1 [ 10070 ]
        Fix Version/s 1.7 [ 10080 ]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Philip Breau made changes -
        Support Case References https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=4167
        Support Customer Ref. #s 745
        Ken Fyten made changes -
        Assignee Priority P2
        Ken Fyten made changes -
        Issue Type New Feature [ 2 ] Improvement [ 4 ]
        Assignee Mark Collette [ mark.collette ] Yip Ng [ yip.ng ]
        Ken Fyten made changes -
        Field Original Value New Value
        Fix Version/s 1.7 [ 10080 ]
        Assignee Mark Collette [ mark.collette ]
        Janos Schwellach created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Janos Schwellach
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: