Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3858 in Sprint 30.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default ST 2.1 RC2 - Line chart fill cannot be disabled

    ST 2.1 RC2 - Line chart fill cannot be disabled


    When creating a chart with a line series that has a colors definition and fill: false, the fill is still set.

    e.g.
    Code:
        getNewSeries: function (colors, fields, index, field) {        var t = Ext.Array.filter(fields, function (f) { return f.name === field; })[0].header;
            return {
                type: 'line',
                title: t,
                xField: 'c0',
                yField: field,
                style: {
                    stroke: colors[index],
                    miterLimit: 3,
                    lineCap: 'miter',
                    lineWidth: 2
                },
                smooth: true,
                fill: false,
                showInLegend: true,
                marker: {
                    type: 'circle',
                    radius: 4,
                    fill: colors[index]
                }
            };
        }
    Ext.chart.series.Series - commenting out the line below in an override and it works again.

    Code:
       
    updateColors: function (colorSet) {
            // this.setSubStyle({fillStyle: colorSet});
            this.doUpdateStyles();
        }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    According to the docs fill is not a config of the line series. Using the kitchensink the fill is within the style config object.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default


    Looking at the docs, clicking code editor on Ext.chart.series.Line, the second line has fill:true

    Also underneath it states:

    The second series has fill = true which means that the line will also have an area below it of the same color.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you are looking at http://docs.sencha.com/touch-charts/1-0/#!/api then you are looking at the wrong product. Touch Charts are not a valid product, charts are now build within the framework in 2.1.0 so if you look at docs that come in the 2.1.0 releases you will see that the Line series does not have a fill config.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default


    Here's a screenshot of the documentation I have from the 2.1rc2 release
    Ext.chart.series.Line - Sencha Docs - Touch 2.jpg

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Screen Shot 2012-10-16 at 8.34.18 AM.png

    But look at the configs. This is a doc issue
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  7. #7
    Sencha - Support Team
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    288
    Vote Rating
    37
    greg.barry has a spectacular aura about greg.barry has a spectacular aura about

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.