Tuesday 15 April 2014

json - SAPUI5 VizContainer - remove preset chart options (sap.viz.ui5.VizContainer) -



json - SAPUI5 VizContainer - remove preset chart options (sap.viz.ui5.VizContainer) -

i using vizcontainer visualize info in sapui5 (vizcontainer-link demo page)

i got 2 questions:

how cut down preset charting options (e.g. not want offer kind of heatmaps , additionally not want offer kind of scatter plots) - did not find alternative configure this... (answered) how configure x-axis correctly? (see illustration below)

x-axis configuration link illustration on sapui5 demo kit page, inserts sec dimension dataset, think in dynamic scenario quite difficult. info has 1 dimension month (in month have different y-axis-values), works fine.

var info = [[ {"name":"country","type":"dimension"}, {"name":"quater","type":"dimension"}, {"name":"profit","type":"measure"}, {"name":"revenue","type":"measure"}], ["country1","q1" 141.25, 35], ["country1","q2", 41, 25], ["country2", "q1", 133.82, 45], ["country2", "q2", 33.82, 89], ];

my data, works offering "complete timeframe" x-axis. ojson[i].title contains month name (e.g. "10/2014")

var info = [ [ {"name":"complete timeframe","type":"dimension"}, {"name":"month1","type":"measure"}, {"name":"month2","type":"measure"}, ], [ ojson[0].title, ojson[0].month1, ojson[0].month2], [ ojson[1].title, ojson[1].month1, ojson[1].month2], [ ojson[2].title, ojson[2].month1, ojson[2].month2], ];

what want accomplish beingness able have multiple x-axis dimensions based on months (e.g. in vizcontainer offer "complete timeframe" single values such "08/2014", "09/2014" ... possible? experience it?

answer on question 1: if there improve solutions, please allow me know!! did not know how accomplish in way

$("#content").find(".viz-controls-switchbar-switcher-container").children(':nth-child(4)').hide(); $("#content").find(".viz-controls-switchbar-switcher-container").children(':nth-child(5)').hide();

json configuration sapui5 graph-visualization

No comments:

Post a Comment