1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Answers
    1
    Vote Rating
    0
    rolska is on a distinguished road

      0  

    Default Unanswered: ST 2.1 RC2 - Bar chart gradient

    Unanswered: ST 2.1 RC2 - Bar chart gradient


    I'm trying to add a linear gradient to a bar sprite in a chart I'm creating. What's the proper way of implementing this? My current attempt doesn't yield any desirable results (the bars are just a solid color of the first gradient stop):


    Code:
    ...
    series: [
                {
                    type: 'bar',
                    store: 'data',
                    xField: 'week',
                    yField: 'unit_sales',
                    axis: 'left',
                    showInLegend: true,
                    title: 'Current sales',           
                    style: {
                        opacity: 1,
                        scalingX: 0.75,
                        fillStyle: {
                            type: 'linear',
                            degrees: 90,
                            stops: [
                                {
                                  offset: 0,
                                  color: "#8A8A8A8"
                                },
                                {
                                  offset: 1,
                                  color: '#454545'
                                }
                            ]
                        }
                    },
                },
    ...

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,790
    Answers
    3465
    Vote Rating
    833
    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


    I'm thinking currently it's only supporting solid colors.
    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
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Answers
    8
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    I'm thinking currently it's only supporting solid colors.
    Will it be implemented in RC3? (St1 Charts had it)

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    7
    Vote Rating
    0
    adaikkalam is on a distinguished road

      0  

    Default Applying linear gradient to a bar is possible in ST 2.1 charts?

    Applying linear gradient to a bar is possible in ST 2.1 charts?


    It was available in the previous version of ST charts.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi