cvChart.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2011
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or
  8. *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *|
  10. *+------------------------------------------------------------------------+
  11. */
  12. dojo.provide( "bux.reportViewer.chart");
  13. dojo.declare( "bux.reportViewer.chart", null,
  14. {
  15. m_displayTypeDialogDefinition: null,
  16. constructor: function( )
  17. {
  18. this.initialize();
  19. },
  20. initialize: function()
  21. {
  22. if( this.m_displayTypeDialogDefinition !== null)
  23. {
  24. return;
  25. }
  26. this.m_displayTypeDialogDefinition = [
  27. {
  28. //label: "Table",
  29. label: RV_RES.IDS_JS_CHART_TABLE,
  30. image: "images/dialog/displayOptionsDialog/type_icons/table.gif",
  31. options: [
  32. {
  33. label: RV_RES.IDS_JS_CHART_CROSSTAB,
  34. Description: "",
  35. image: "images/dialog/displayOptionsDialog/chart_thumbnails/crosstab_48.gif",
  36. value: "crosstab"
  37. },
  38. {
  39. label: RV_RES.IDS_JS_CHART_LIST_TABLE,
  40. Description: "",
  41. image: "images/dialog/displayOptionsDialog/chart_thumbnails/List_48.gif",
  42. value: "list"
  43. }
  44. ]
  45. },
  46. {
  47. label: RV_RES.IDS_JS_CHART_COLUMN,
  48. image: "images/dialog/displayOptionsDialog/type_icons/column.gif",
  49. options: [
  50. {
  51. label: RV_RES.IDS_JS_CHART_COLUMN,
  52. Description: "",
  53. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_clustered_flat.gif",
  54. value: "column_clustered_flat"
  55. },
  56. {
  57. //label: "Column with 3-D Visual Effect",
  58. label: RV_RES.IDS_JS_CHART_COLUMN_3D,
  59. Description: "",
  60. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_clustered.gif",
  61. value: "column_clustered"
  62. },
  63. {
  64. //label: "Stacked Column",
  65. label: RV_RES.IDS_JS_CHART_STACKED_COLUMN,
  66. Description: "",
  67. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_stacked_flat.gif",
  68. value: "column_stacked_flat"
  69. },
  70. {
  71. //label: "Stacked Column with 3-D Visual Effect",
  72. label: RV_RES.IDS_JS_CHART_STACKED_COLUMN_3D,
  73. Description: "",
  74. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_stacked.gif",
  75. value: "column_stacked"
  76. },
  77. {
  78. //label: "100% Stacked Column",
  79. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_COLUMN,
  80. Description: "",
  81. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_percent_flat.gif",
  82. value: "column_percent_flat"
  83. },
  84. {
  85. //label: "100% Stacked Column with 3-D Visual Effect",
  86. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_COLUMN_3D,
  87. Description: "",
  88. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_percent.gif",
  89. value: "column_percent"
  90. },
  91. {
  92. //label: "3-D Axis Column",
  93. label: RV_RES.IDS_JS_CHART_3D_AXIS_COLUMN,
  94. Description: "",
  95. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_column_3daxis.gif",
  96. value: "column_3daxis"
  97. },
  98. {
  99. label: RV_RES.IDS_JS_CHART_COLUMN,
  100. Description: "",
  101. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_column_rectangle_clustered.jpg",
  102. value: "v2_column_rectangle_clustered"
  103. },
  104. {
  105. //label: "Column with 3-D Visual Effect",
  106. label: RV_RES.IDS_JS_CHART_COLUMN_3D,
  107. Description: "",
  108. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_column_box_clustered_depth.jpg",
  109. value: "v2_column_box_clustered_depth"
  110. },
  111. {
  112. //label: "Stacked Column",
  113. label: RV_RES.IDS_JS_CHART_STACKED_COLUMN,
  114. Description: "",
  115. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_column_rectangle_stacked.jpg",
  116. value: "v2_column_rectangle_stacked"
  117. },
  118. {
  119. //label: "Stacked Column with 3-D Visual Effect",
  120. label: RV_RES.IDS_JS_CHART_STACKED_COLUMN_3D,
  121. Description: "",
  122. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_column_box_stacked_depth.jpg",
  123. value: "v2_column_box_stacked_depth"
  124. },
  125. {
  126. //label: "100% Stacked Column",
  127. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_COLUMN,
  128. Description: "",
  129. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_column_rectangle_percent.jpg",
  130. value: "v2_column_rectangle_percent"
  131. },
  132. {
  133. //label: "100% Stacked Column with 3-D Visual Effect",
  134. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_COLUMN_3D,
  135. Description: "",
  136. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_column_box_percent_depth.jpg",
  137. value: "v2_column_box_percent_depth"
  138. }
  139. ]
  140. },
  141. {
  142. //label: "Bar",
  143. label: RV_RES.IDS_JS_CHART_BAR,
  144. image: "images/dialog/displayOptionsDialog/type_icons/bar.gif",
  145. options: [
  146. {
  147. label: RV_RES.IDS_JS_CHART_BAR,
  148. Description: "",
  149. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bar_clustered_flat.gif",
  150. value: "bar_clustered_flat"
  151. },
  152. {
  153. //label: "Bar with 3-D Visual Effect",
  154. label: RV_RES.IDS_JS_CHART_BAR_3D,
  155. Description: "",
  156. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bar_clustered.gif",
  157. value: "bar_clustered"
  158. },
  159. {
  160. //label: "Stacked Bar",
  161. label: RV_RES.IDS_JS_CHART_STACKED_BAR,
  162. Description: "",
  163. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bar_stacked_flat.gif",
  164. value: "bar_stacked_flat"
  165. },
  166. {
  167. //label: "Stacked Bar with 3-D Visual Effect",
  168. label: RV_RES.IDS_JS_CHART_STACKED_BAR_3D,
  169. Description: "",
  170. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bar_stacked.gif",
  171. value: "bar_stacked"
  172. },
  173. {
  174. //label: "100% Stacked Bar",
  175. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_BAR,
  176. Description: "",
  177. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bar_percent_flat.gif",
  178. value: "bar_percent_flat"
  179. },
  180. {
  181. //label: "100% Stacked Bar with 3-D Visual Effect",
  182. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_BAR_3D,
  183. Description: "",
  184. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bar_percent.gif",
  185. value: "bar_percent"
  186. },
  187. {
  188. label: RV_RES.IDS_JS_CHART_BAR,
  189. Description: "",
  190. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bar_rectangle_clustered.jpg",
  191. value: "v2_bar_rectangle_clustered"
  192. },
  193. {
  194. //label: "Bar with 3-D Visual Effect",
  195. label: RV_RES.IDS_JS_CHART_BAR_3D,
  196. Description: "",
  197. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bar_box_clustered_depth.jpg",
  198. value: "v2_bar_box_clustered_depth"
  199. },
  200. {
  201. //label: "Stacked Bar",
  202. label: RV_RES.IDS_JS_CHART_STACKED_BAR,
  203. Description: "",
  204. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bar_rectangle_stacked.jpg",
  205. value: "v2_bar_rectangle_stacked"
  206. },
  207. {
  208. //label: "Stacked Bar with 3-D Visual Effect",
  209. label: RV_RES.IDS_JS_CHART_STACKED_BAR_3D,
  210. Description: "",
  211. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bar_box_stacked_depth.jpg",
  212. value: "v2_bar_box_stacked_depth"
  213. },
  214. {
  215. //label: "100% Stacked Bar",
  216. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_BAR,
  217. Description: "",
  218. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bar_rectangle_percent.jpg",
  219. value: "v2_bar_rectangle_percent"
  220. },
  221. {
  222. //label: "100% Stacked Bar with 3-D Visual Effect",
  223. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_BAR_3D,
  224. Description: "",
  225. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bar_box_percent_depth.jpg",
  226. value: "v2_bar_box_percent_depth"
  227. }
  228. ]
  229. },
  230. {
  231. //label: "Line",
  232. label: RV_RES.IDS_JS_CHART_LINE,
  233. image: "images/dialog/displayOptionsDialog/type_icons/line.gif",
  234. options: [
  235. {
  236. //label: "Line with Markers",
  237. label: RV_RES.IDS_JS_CHART_LINE_WITH_MARKERS,
  238. Description: "",
  239. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_clustered_flat_markers.gif",
  240. value: "line_clustered_flat_markers"
  241. },
  242. {
  243. //label: "Line",
  244. label: RV_RES.IDS_JS_CHART_LINE,
  245. Description: "",
  246. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_clustered_flat.gif",
  247. value: "line_clustered_flat"
  248. },
  249. {
  250. //label: "Line with 3-D Visual Effect",
  251. label: RV_RES.IDS_JS_CHART_LINE_3D,
  252. Description: "",
  253. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_clustered.gif",
  254. value: "line_clustered"
  255. },
  256. {
  257. //label: "Step Line with Markers",
  258. label: RV_RES.IDS_JS_CHART_STEP_LINE_MARKERS,
  259. Description: "",
  260. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_stepAtPoint_clustered_flat_markers.gif",
  261. value: "line_stepAtPoint_clustered_flat_markers"
  262. },
  263. {
  264. //label: "Step Line",
  265. label: RV_RES.IDS_JS_CHART_STEP_LINE,
  266. Description: "",
  267. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_stepAtPoint_clustered_flat.gif",
  268. value: "line_stepAtPoint_clustered_flat"
  269. },
  270. {
  271. //label: "Stacked Line with Markers",
  272. label: RV_RES.IDS_JS_CHART_STACKED_LINE_MARKERS,
  273. Description: "",
  274. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_stacked_flat_markers.gif",
  275. value: "line_stacked_flat_markers"
  276. },
  277. {
  278. //label: "Stacked Line",
  279. label: RV_RES.IDS_JS_CHART_STACKED_LINE,
  280. Description: "",
  281. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_stacked_flat.gif",
  282. value: "line_stacked_flat"
  283. },
  284. {
  285. //label: "Stacked Line with 3-D Visual Effect",
  286. label: RV_RES.IDS_JS_CHART_STACKED_LINE_3D,
  287. Description: "",
  288. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_stacked.gif",
  289. value: "line_stacked"
  290. },
  291. {
  292. //label: "100% Stacked Line with Markers",
  293. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_LINE_MARKERS,
  294. Description: "",
  295. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_percent_flat_markers.gif",
  296. value: "line_percent_flat_markers"
  297. },
  298. {
  299. //label: "100% Stacked Line",
  300. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_LINE,
  301. Description: "",
  302. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_percent_flat.gif",
  303. value: "line_percent_flat"
  304. },
  305. {
  306. //label: "100% Stacked Line with 3-D Visual Effect",
  307. label: RV_RES.IDS_JS_CHART_PERCENT_STACKED_LINE__3D,
  308. Description: "",
  309. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_percent.gif",
  310. value: "line_percent"
  311. },
  312. {
  313. //label: "3-D Axis Line",
  314. label: RV_RES.IDS_JS_CHART_3D_AXIS_LINE,
  315. Description: "",
  316. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_line_3daxis.gif",
  317. value: "line_3daxis"
  318. },
  319. {
  320. //label: "Line",
  321. label: RV_RES.IDS_JS_CHART_LINE,
  322. Description: "",
  323. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_line_clustered.jpg",
  324. value: "v2_line_clustered"
  325. },
  326. {
  327. //label: "Line with 3-D Visual Effect",
  328. label: RV_RES.IDS_JS_CHART_LINE_3D,
  329. Description: "",
  330. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_line_clustered_depth.jpg",
  331. value: "v2_line_clustered_depth"
  332. },
  333. {
  334. //label: "Line with Markers",
  335. label: RV_RES.IDS_JS_CHART_LINE_WITH_MARKERS,
  336. Description: "",
  337. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_line_clustered_markers.jpg",
  338. value: "v2_line_clustered_markers"
  339. },
  340. {
  341. //label: "Line with 3-D Visual Effect Markers",
  342. label: RV_RES.IDS_JS_CHART_LINE_WITH_3D_MARKERS,
  343. Description: "",
  344. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_line_clustered_3dmarkers.jpg",
  345. value: "v2_line_clustered_3dmarkers"
  346. },
  347. {
  348. //label: "Step Line",
  349. label: RV_RES.IDS_JS_CHART_STEP_LINE,
  350. Description: "",
  351. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_stepped_line_at_points_clustered.jpg",
  352. value: "v2_stepped_line_at_points_clustered"
  353. },
  354. {
  355. //label: "Step Line with 3-D Visual Effect",
  356. label: RV_RES.IDS_JS_CHART_STEP_LINE_3D,
  357. Description: "",
  358. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_stepped_line_at_points_clustered_depth.jpg",
  359. value: "v2_stepped_line_at_points_clustered_depth"
  360. }
  361. ]
  362. },
  363. {
  364. //label: "Pie, Donut",
  365. label: RV_RES.IDS_JS_CHART_PIE_DONUT,
  366. image: "images/dialog/displayOptionsDialog/type_icons/pie.gif",
  367. options: [
  368. {
  369. //label: "Pie",
  370. label: RV_RES.IDS_JS_CHART_PIE,
  371. Description: "",
  372. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_pie_flat.gif",
  373. value: "pie_flat"
  374. },
  375. {
  376. //label: "Donut",
  377. label: RV_RES.IDS_JS_CHART_DONUT,
  378. Description: "",
  379. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_pie_flat_hole.gif",
  380. value: "pie_flat_hole"
  381. },
  382. {
  383. //label: "Pie with 3-D Visual Effect",
  384. label: RV_RES.IDS_JS_CHART_PIE_3D,
  385. Description: "",
  386. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_pie.gif",
  387. value: "pie"
  388. },
  389. {
  390. //label: "Donut with 3-D Visual Effect",
  391. label: RV_RES.IDS_JS_CHART_DONUT_3D,
  392. Description: "",
  393. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_pie_hole.gif",
  394. value: "pie_hole"
  395. },
  396. {
  397. //label: "Pie",
  398. label: RV_RES.IDS_JS_CHART_PIE,
  399. Description: "",
  400. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_pie_flat.jpg",
  401. value: "v2_pie"
  402. },
  403. {
  404. //label: "Pie with 3-D Visual Effect",
  405. label: RV_RES.IDS_JS_CHART_PIE_3D,
  406. Description: "",
  407. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_pie.jpg",
  408. value: "v2_pie_depth_round"
  409. },
  410. {
  411. //label: "Donut",
  412. label: RV_RES.IDS_JS_CHART_DONUT,
  413. Description: "",
  414. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_pie_hole_flat.jpg",
  415. value: "v2_donut"
  416. },
  417. {
  418. //label: "Donut with 3-D Visual Effect",
  419. label: RV_RES.IDS_JS_CHART_DONUT_3D,
  420. Description: "",
  421. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_pie_hole.jpg",
  422. value: "v2_donut_depth_round"
  423. }
  424. ]
  425. },
  426. {
  427. //label: "Area",
  428. label: RV_RES.IDS_JS_CHART_AREA,
  429. image: "images/dialog/displayOptionsDialog/type_icons/area.gif",
  430. options: [
  431. {
  432. //label: "Area",
  433. label: RV_RES.IDS_JS_CHART_AREA,
  434. Description: "",
  435. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_clustered_flat.gif",
  436. value: "area_clustered_flat"
  437. },
  438. {
  439. //label: "Area with 3-D Visual Effect",
  440. label: RV_RES.IDS_JS_CHART_AREA_3D,
  441. Description: "",
  442. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_clustered.gif",
  443. value: "area_clustered"
  444. },
  445. {
  446. //label: "Stacked Area",
  447. label: RV_RES.IDS_JS_CHART_STACKED_AREA,
  448. Description: "",
  449. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_stacked_flat.gif",
  450. value: "area_stacked_flat"
  451. },
  452. {
  453. //label: "Stacked Area with 3-D Visual Effect",
  454. label: RV_RES.IDS_JS_CHART_STACKED_AREA_3D,
  455. Description: "",
  456. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_stacked.gif",
  457. value: "area_stacked"
  458. },
  459. {
  460. //label: "100% Area",
  461. label: RV_RES.IDS_JS_CHART_PERCENT_AREA,
  462. Description: "",
  463. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_percent_flat.gif",
  464. value: "area_percent_flat"
  465. },
  466. {
  467. //label: "100% Area with 3-D Visual Effect",
  468. label: RV_RES.IDS_JS_CHART_PERCENT_AREA_3D,
  469. Description: "",
  470. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_percent.gif",
  471. value: "area_percent"
  472. },
  473. {
  474. //label: "3-D Axis Area",
  475. label: RV_RES.IDS_JS_CHART_3D_AXIS_AREA,
  476. Description: "",
  477. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_area_3daxis.gif",
  478. value: "area_3daxis"
  479. },
  480. {
  481. //label: "Stacked Area",
  482. label: RV_RES.IDS_JS_CHART_STACKED_AREA,
  483. Description: "",
  484. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_area_flat_point_to_point.gif",
  485. value: "v2_area_stacked_flat"
  486. },
  487. {
  488. //label: "Stacked Area with 3-D Visual Effect",
  489. label: RV_RES.IDS_JS_CHART_STACKED_AREA_3D,
  490. Description: "",
  491. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_area_depth_point_to_point.gif",
  492. value: "v2_area_stacked"
  493. },
  494. {
  495. //label: "100% Area",
  496. label: RV_RES.IDS_JS_CHART_PERCENT_AREA,
  497. Description: "",
  498. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_area_flat_percent_point_to_point.gif",
  499. value: "v2_area_percent_flat"
  500. },
  501. {
  502. //label: "100% Area with 3-D Visual Effect",
  503. label: RV_RES.IDS_JS_CHART_PERCENT_AREA_3D,
  504. Description: "",
  505. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_area_depth_percent_point_to_point.gif",
  506. value: "v2_area_percent"
  507. }
  508. ]
  509. },
  510. {
  511. //label: "Scatter, Bubble, Point",
  512. label: RV_RES.IDS_JS_CHART_SCATTER_BUBBLE_POINT,
  513. image: "images/dialog/displayOptionsDialog/type_icons/scatter.gif",
  514. options: [
  515. {
  516. //label: "Scatter",
  517. label: RV_RES.IDS_JS_CHART_SCATTER,
  518. Description: "",
  519. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_scatter.gif",
  520. value: "scatter"
  521. },
  522. {
  523. //label: "Bubble",
  524. label: RV_RES.IDS_JS_CHART_BUBBLE,
  525. Description: "",
  526. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bubble.gif",
  527. value: "bubble"
  528. },
  529. {
  530. //label: "Bubble with Excel Bubble Sizing",
  531. label: RV_RES.IDS_JS_CHART_BUBBLE_WITH_EXCEL_BUBBLE_SIZING,
  532. Description: "",
  533. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_bubble_excel.gif",
  534. value: "bubble_zeroBased"
  535. },
  536. {
  537. //label: "Point",
  538. label: RV_RES.IDS_JS_CHART_POINT,
  539. Description: "",
  540. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_point_clustered.gif",
  541. value: "point_clustered"
  542. },
  543. {
  544. //label: "3-D Scatter",
  545. label: RV_RES.IDS_JS_CHART_3D_SCATTER,
  546. Description: "",
  547. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_scatter_3daxis.gif",
  548. value: "scatter_3daxis"
  549. },
  550. {
  551. //label: "Scatter",
  552. label: RV_RES.IDS_JS_CHART_SCATTER,
  553. Description: "",
  554. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_scatter.gif",
  555. value: "v2_scatter"
  556. },
  557. {
  558. //label: "Bubble",
  559. label: RV_RES.IDS_JS_CHART_BUBBLE,
  560. Description: "",
  561. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bubble.gif",
  562. value: "v2_bubble"
  563. },
  564. {
  565. //label: "Bubble with 3-D Visual Effect",
  566. label: RV_RES.IDS_JS_CHART_BUBBLE_3D,
  567. Description: "",
  568. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_bubble_3dmarkers.gif",
  569. value: "v2_bubble_3d"
  570. },
  571. {
  572. //label: "Point",
  573. label: RV_RES.IDS_JS_CHART_POINT,
  574. Description: "",
  575. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_point_clustered_markers.jpg",
  576. value: "v2_point_clustered_markers"
  577. },
  578. {
  579. //label: "Point with 3-D Markers",
  580. label: RV_RES.IDS_JS_CHART_POINT_3D,
  581. Description: "",
  582. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_point_clustered_3dmarkers.jpg",
  583. value: "v2_point_clustered_3dmarkers"
  584. }
  585. ]
  586. },
  587. {
  588. //label: "Gauge",
  589. label: RV_RES.IDS_JS_CHART_GAUGE,
  590. image: "images/dialog/displayOptionsDialog/type_icons/gauge.gif",
  591. options: [
  592. {
  593. //label: "Dial Gauge",
  594. label: RV_RES.IDS_JS_CHART_DIAL_GAUGE,
  595. Description: "",
  596. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_gauge_dial.gif",
  597. value: "gauge_dial"
  598. },
  599. {
  600. //label: "Dial Gauge",
  601. label: RV_RES.IDS_JS_CHART_DIAL_GAUGE,
  602. Description: "",
  603. image: "images/dialog/displayOptionsDialog/chart_thumbnails/type_v2_gauge.gif",
  604. value: "v2_gauge"
  605. }
  606. ]
  607. }
  608. ];
  609. },
  610. getDisplayTypeDialogDefinition: function( targetTypes )
  611. {
  612. var newDialogDefinition = [];
  613. for ( var j in this.m_displayTypeDialogDefinition )
  614. {
  615. var chartGroup = this.m_displayTypeDialogDefinition[j];
  616. var newChartGroup = {};
  617. newChartGroup.image = this.m_displayTypeDialogDefinition[j].image;
  618. newChartGroup.label = this.m_displayTypeDialogDefinition[j].label;
  619. newChartGroup.options = [];
  620. var charts = chartGroup.options;
  621. for( var k in charts)
  622. {
  623. var chart = charts[k];
  624. for( var i in targetTypes)
  625. {
  626. var targetType = targetTypes[i];
  627. if(chart.value === targetType )
  628. {
  629. var chartCopy = {
  630. label : chart.label,
  631. Description : chart.Description,
  632. image : chart.image,
  633. value : "{targetType:'" + chart.value + "', label:'" + chart.label + "'}"
  634. };
  635. newChartGroup.options.push( chartCopy );
  636. }
  637. }
  638. }
  639. if( newChartGroup.options.length > 0)
  640. {
  641. newDialogDefinition.push( newChartGroup );
  642. }
  643. }
  644. return newDialogDefinition;
  645. }
  646. });