この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

Classic デザイナダッシュボードの JSON の例

各 Classic デザイナダッシュボードの JSON には、複数レベルのプロパティが含まれます。プロパティを設定する場所を理解するため、JSON の構造を確認してください。

JSON の構造は、ダッシュボードの作成に Wave デザイナとClassic デザイナのどちらを使用するかによって異なります。

メモ

1{
2  "description": "Shows opportunities by industry.",
3  "label" : "Opportunities",
4  "folder" : {
5      "id" : "00l36000000SpXiAAK"
6	},
7  "state": {
8    "steps": {      
9      "AccountIndustryPieChart": {
10        "type": "aggregate",
11        "isGlobal": false,
12        "isFacet": true,
13        "useGlobal": true,
14        "selectMode": "single",
15        "start": null,
16        "visualizationParameters": {
17          "visualizationType": "pie"
18        },
19        "query": {
20          "query": "{\"groups\":[\"AccountId.Industry\"],\"measures\":[[\"count\",\"*\"]]}",
21          "version": -1
22        },
23        "datasets": [
24          {
25            "name": "Opps"
26          }
27        ]
28      },
29      "AccountIndustryBarChart": {
30        "type": "aggregate",
31        "isGlobal": false,
32        "isFacet": true,
33        "useGlobal": true,
34        "selectMode": "single",
35        "start": null,
36        "visualizationParameters": {
37          "options": {
38            "sqrt": true
39          },
40          "visualizationType": "hbar"
41        },
42        "query": {
43          "query": "{\"measures\":[[\"sum\",\"Amount\"]],\"groups\":[\"AccountId.Industry\"],\"order\":[[-1,{\"ascending\":false}]]}",
44          "version": -1
45        },
46        "datasets": [
47          {
48            "name": "Opps"
49          }
50        ]
51      }
52    },
53    "widgets": {
54      "chart_1": {
55        "type": "chart",
56        "position": {
57          "zIndex": 3,
58          "x": 10,
59          "y": 80,
60          "w": 500,
61          "h": 300
62        },
63        "parameters": {
64          "step": "AccountIndustryPieChart",
65          "legend": true,
66          "visualizationType": "pie"
67        }
68      },
69      "text_1": {
70        "type": "text",
71        "position": {
72          "zIndex": 4,
73          "x": 0,
74          "y": 10
75        },
76        "parameters": {
77          "text": "Account Industries",
78          "textAlignment": "left"
79        }
80      },
81      "text_4": {
82        "type": "text",
83        "position": {
84          "zIndex": 11,
85          "x": 500,
86          "y": 10
87        },
88        "parameters": {
89          "text": "Amount by Industries"
90        }
91      },
92      "chart_4": {
93        "type": "chart",
94        "position": {
95          "zIndex": 12,
96          "x": 530,
97          "y": 70,
98          "w": 500,
99          "h": 300
100        },
101        "parameters": {
102          "step": "AccountIndustryBarChart",
103          "sqrt": true,
104          "visualizationType": "vbar"
105        }
106      }
107    }
108  }
109}

このダッシュボード JSON ファイルは、Classic デザイナで作成される単純なダッシュボードを定義します。このダッシュボードには、1 つの円グラフ chart_1 (ステップ AccountIndustryPieChart に基づく) と 1 つの棒グラフ chart_4 (ステップ AccountIndustryBarChart に基づく) の 2 つのファセ���トされたウィジェットが表示されます。両方のステップは同じ Opps データセットを参照します。