Results 1 to 2 of 2

Thread: Bug 6.5.1 chart caption

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2016
    Posts
    51

    Default Bug 6.5.1 chart caption

    Hi,

    While investigating another user's issues on another thread, it appears that you cannot update a chart's captions properly via viewmodels (also may not work manually via setCaptions, but not tested).

    Test fiddle: https://fiddle.sencha.com/#view/editor&fiddle/27cg

    Expected result - removing the credits comment in the viewmodel should look similar to the result obtained when the bind config on the chart is commented (i.e. no captions binding)
    Actual result - The 'credits' config in the viewmodel displays as a 2nd line underneath the title

    Added issue:
    If the captions object is not present in the initial chart config, there is a JS exception raised, as it expects an initialConfig object.

    Fiddle appears to require 6.5.1 neptune classic (I used someone else's fiddle as a starter)

  2. #2
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    135

    Default

    I thought I was going nuts. Spent all the evening figuring why on earth captions is not binding to viewmodel.

    I get this error

    PHP Code:
    Uncaught TypeErrorCannot set property 'title' of null    at ctor.applyCaptions (app.js?_dc=20170503153202:1)    
    at ctor.[as setCaptions] (app.js?_dc=20170503153202:1)    at ctor.setConfig (app.js?_dc=20170503153202:1)    
    at <anonymous>:1:
    The workaround is to return

    PHP Code:
    title: { text'A graph title' } } 
    instead of
    PHP Code:
    title'A graph title' 

Similar Threads

  1. extjs caption
    By javapurna in forum Ext: Q&A
    Replies: 1
    Last Post: 19 Apr 2013, 4:11 PM
  2. Replies: 0
    Last Post: 11 May 2011, 8:29 AM
  3. Help: text box or caption in charts
    By Joe Kuan in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 7 Oct 2010, 2:07 PM
  4. BackButton caption
    By PhilK in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 30 Jul 2010, 2:53 AM
  5. Caption on collapsed layout?
    By Saeven in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 25 Apr 2007, 3:51 PM

Posting Permissions

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