Results 1 to 6 of 6

Thread: Unknown definition for dependency - Ext.pivot.d3.HeatMap

  1. #1
    Sencha User
    Join Date
    Oct 2015
    Posts
    45
    Answers
    1
    Vote Rating
    -1
      0  

    Default Unknown definition for dependency - Ext.pivot.d3.HeatMap

    any one can help for this error?

    try to do demo for d3.heatmap.PivotConfigurator but get error

    imported pivot and pivot-d3 and i just did like that:
    Ext.define('components.d3.PivotHeatmapConfiguratorBuilder', {
    extend: 'Ext.pivot.d3.HeatMap',
    alias: 'widget.PivotHeatmapConfiguratorBuilder',

    xtype: 'pltx-PivotHeatmapConfiguratorBuilder',

    controller: 'd3BuilderController',

    requires: [

    'components.d3.D3BuilderController'
    ]
    });

    sencha cmd error log:

    > Task encha
    Sencha Cmd v6.6.0.13
    [INF] Loading compiler context
    [ERR] Failed to resolve dependency Ext.pivot.d3.HeatMap for file components.d3.PivotHeatmapConfiguratorBuilder
    [ERR] Unknown definition for dependency : Ext.pivot.d3.HeatMap
    [ERR]
    [ERR] The application was last modified by an older version of Sencha Cmd (6.1.0.65).
    [ERR] Running "sencha app upgrade" may resolve the error described above.
    [ERR]






  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,336
    Answers
    3993
    Vote Rating
    1486
      0  

    Default

    In your app.json did you require the pivot and pivot-d3 packages?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2015
    Posts
    45
    Answers
    1
    Vote Rating
    -1
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    In your app.json did you require the pivot and pivot-d3 packages?
    after add pivot-d3 to app.json then error log is:

    Uncaught TypeError: Cannot read property 'HeatMap' of undefined . in the lib:

    Code:
    * The pivot matrix should be configured with maximum one dimension per
     * `leftAxis`, `topAxis` or `aggregate`.
     *
     */
    Ext.define('Ext.pivot.d3.HeatMap', {
        extend: Ext.d3.HeatMap,<<<<---error come from 
        xtype: 'pivotheatmap',
        padding: {
            top: 20,
            right: 30,
            bottom: 20,
            left: 80
        },
        config: {
            /**
             * @cfg {String} defaultFormatter
             *
             * Default formatter used to render cells on colorAxis
             */
            defaultFormatter: 'number("0.00")',........

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,336
    Answers
    3993
    Vote Rating
    1486
      0  

    Default

    Try the d3 package also now.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Oct 2015
    Posts
    45
    Answers
    1
    Vote Rating
    -1
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Try the d3 package also now.
    i just did got same error

  6. #6
    Sencha User
    Join Date
    Oct 2015
    Posts
    45
    Answers
    1
    Vote Rating
    -1
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Try the d3 package also now.
    Code:
     *          "charts"
     *      ]
     */
    "requires": [
        "font-awesome",
    "charts",
    "ux",
    "pivot",
    "d3",
    "pivot-d3"
    ],
    
    /**
     * Sass configuration properties.
     */
    "sass": {

Similar Threads

  1. Getting Started -- unknown definition for dependency
    By JackJohnsonX in forum Sencha Cmd
    Replies: 2
    Last Post: 18 Jan 2016, 6:10 PM
  2. Unknown definition for dependency : Ext.ux.IFrame
    By khusamov in forum Sencha Cmd
    Replies: 2
    Last Post: 4 Nov 2015, 4:10 AM
  3. Unknown definition for dependency
    By sananda.dasgupta in forum Ext 6: Q&A
    Replies: 2
    Last Post: 20 Jul 2015, 7:00 PM
  4. Replies: 1
    Last Post: 3 Sep 2014, 6:24 AM

Tags for this Thread

Posting Permissions

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