Results 1 to 10 of 20

Thread: ST 2.1 RC2 - Line chart fill cannot be disabled

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  7. #7
    Sencha - Documentation Team
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    412
    Vote Rating
    79
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •