2016-07-14 4 views
1

私はこれで壁に頭を打っています。ラリーSDK2.1を使用してGoogleグラフを追加する方法

APP SDK 2.0: Charts in the short term?

私はレポートを結集するためにGoogleのチャートを追加するために、ポストの上に続くが、問題に遭遇しました。私は答えを期待していたmattparrishそのポストでは動作します。しかし、それは次のようなエラーがスローされます。

sdk-debug.js:147611 Error: success callback for Deferred transformed result of Deferred transformed result of Deferred threw: TypeError: Cannot read property 'dom' of undefined 
at constructor._drawChart (App.js?_dc=0.8649522877525893:36) 
at constructor.launch (App.js?_dc=0.8649522877525893:30) 
at constructor._applyDefaultSettingsAndLaunch (sdk-debug.js:155148) 
at constructor.loadSettingsAndLaunch (sdk-debug.js:155054) 
at constructor.initComponent (sdk-debug.js:155032) 
at constructor (sdk-debug.js:30211) 
at constructor.callParent (sdk-debug.js:4469) 
at constructor [as _componentConstructor] (sdk-debug.js:34291) 
at constructor.callParent (sdk-debug.js:4469) 
at constructor (sdk-debug.js:144823) 

これは私がレポートを結集するために、GoogleのJSAPIを追加してい方法です:

<!DOCTYPE html> 
<html> 
<head> 
    <title>ExtPlusGoogleCharts</title> 


    <script type="text/javascript" src="https://rally1.rallydev.com/apps/2.1/sdk-debug.js"></script> 
    <script type="text/javascript" src="https://www.google.com/jsapi"></script> 

    <script type="text/javascript"> 
    google.load("visualization", "1.0", {packages:["corechart"]}); 
    google.setOnLoadCallback(Rally.loadScripts(
       [ 
         "App.js", 
       ], 
     function() { 
      Rally.launchApp('CustomApp', { 
       name:"ExtPlusGoogleCharts" 
      }); 
     }, true)); 

    </script> 


    <link rel="stylesheet" type="text/css" href="app.css"/> 
</head> 
<body> 
</body> 
</html> 

は、我々はラリーSDK2.1でGoogleのチャートを追加できますか?はいの場合、どうですか?ありがとう!

答えて

0

好奇心の渦中から、Googleのグラフを使用する特別な理由はありますか?あなたが参照したその質問は、かなり古く、Highchartsを使用するApp SDK 2.1の現在のチャート作成プラットフォームよりも前です。 https://help.rallydev.com/apps/2.1/doc/#!/example/bare-metal-chart

あなたはおそらくまだ答えを投稿する必要があります他のものを誰かを使用したいので、もし私は、すべてのGoogleのチャートとその慣れていないよ:

ここでこれを行う方法の固体の例がありますその上に。しかし、うまくいけば、私たちの組み込みのチャートコンポーネントを使用することができます...

+0

私は素晴らしい素晴らしいチャートを使用していますが、私はちょっとした骨董品です。私はSencha SDKが新しくなったので、理解しています。 – hariszhr

関連する問題