Ext.NET icon indicating copy to clipboard operation
Ext.NET copied to clipboard

absent: ext-cartesianChart's legendConfig inner property

Open fabriciomurta opened this issue 5 years ago • 0 comments

Found: Ext.NET 7.0.0-preview4_2020-07-21.

There's no <legendConfig /> tag within the ext-cartesianChart component, and the closer to it does not work.

From this Ext.NET 5 markup:

<ext:CartesianChart runat=server>
    <LegendConfig dock="Bottom" />
</ext:CartesianChart>

One would derive:

<ext-cartesianChart>
    <legend>
        <ext-chartLegend dock="Ext.Net.Dock.Bottom" />
    </legend>
</ext-cartesianChart>

Besides the dock setting not being clean, and intellisense suggesting a lot of settings, one "accepted" setting is Ext.Net.Dock.Bottom; which is okay, but following other enum properties throughout Ext.NET could be simplified to just dock="bottom".

Furthermore the <legend /> block is not accepted within the context with the message: `Element 'legend' cannot be nested inside element 'form', given the context:

<html>
    <head>
        <title></title>
    </head>
    <body>
        <form>
            <ext-cartesianChart>
                <legend>
                    <ext-chartLegend dock="Ext.Net.Dock.Bottom" />
                </legend>
            </ext-cartesianChart>
        </form>
    </body>
</html>

The discussion on LegendConfig ==> legend > ext-chartLegend has a point in #1801. If that's something that shouldn't really be overridden, or doesn't need the artifice to allow overriding/extending, then the shorter syntax, less nested one, may be better (shorter) for a user-experience perspective.

WebForms examples matching LegendConfig

  1. Chart > Area > Stacked
  2. Chart > Area > Stacked_100
  3. Chart > Bar > Grouped
  4. Chart > Bar > Stacked
  5. Chart > Bar > Stacked_100
  6. Chart > Column > Stacked
  7. Chart > Column > Stacked_100
  8. Chart > Combination > Custom_Theme
  9. Chart > Combination > Pareto
  10. Chart > Line > Image_Markers
  11. Chart > Line > Marked_Spline
  12. Chart > Line > Markers
  13. Chart > Line > Multiple_Axes
  14. Chart > Pie > Basic
  15. Chart > Radar > Fill
  16. Chart > Radar > Marked
  17. Desktop > Introduction > Overview

MVC examples matching LegendConfig

  1. Chart > Area > Stacked
  2. Chart > Area > Stacked_100
  3. Chart > Bar > Grouped
  4. Chart > Bar > Stacked
  5. Chart > Bar > Stacked_100
  6. Chart > Column > Stacked
  7. Chart > Column > Stacked_100
  8. Chart > Combination > Custom_Theme
  9. Chart > Line > Basic
  10. Chart > Pie > Basic
  11. Desktop > Overview
  12. Portal > Complex

fabriciomurta avatar Jul 21 '20 17:07 fabriciomurta