I am starting with SpagoBI, I managed to display a static chart using Highchart, what I want to do is a dynamic chart means if my data set is updated I want my chart to be updated as well, without manually refreshing the web page. like the example under this link [1]
I used SpagoBi studio to deploy the chart, I tested the option of "refresh Seconds" (I edited to 1 second) while deploying but it is not working.
How can I do that?
Update: the chart template:
<HIGHCHART width="100%" height="100%">
<CHART defaultSeriesType="spline" zoomType="xy"/>
<TITLE text="Temperature 1"/>
<LEGEND/>
<SUBTITLE/>
<X_AXIS allowDecimals="true" maxZoom="4" min="0" tickWidth="1" type="linear" alias="recvTime">
<TITLE/>
</X_AXIS>
<Y_AXIS maxPadding="0.0" maxZoom="4" tickWidth="1" type="linear" alias="attrValue">
<TITLE/>
</Y_AXIS>
<PLOT_OPTIONS>
<SPLINE stacking="">
<DATA_LABELS/>
</SPLINE>
</PLOT_OPTIONS>
<DRILL>
<PARAM_LIST/>
</DRILL>
<SERIES_LIST>
<SERIES name="Temperature" alias="recvTime,attrValue" type="spline"/>
</SERIES_LIST>
</HIGHCHART>
[1]http://www.highcharts.com/demo/dynamic-update
try setting the refresh_time property:
<HIGHCHART refresh_time='5' width="100%" height="100%" >
....
Hope this help!
I'm not able to reproduce your problem with the "Refresh seconds" option... are you using the FIWARE package or another SpagoBI version?
Anyway, using the "Refresh seconds" option, the chart will be re-created from scratch at the specified rate, not updated as the Highchart example.
Charts provided by SpagoBI with the ExtJS library can be refreshed: just specify "refreshTime" in the template XML root tag:
<EXTCHART refreshTime='10'...
this will let the chart refresh its data without being re-created from scratch.
But, refreshing data is still not exactly the "time shifting" functionality as in the Highcharts example; if you are looking for that, you should have a look at the Console[1] engine.
Best regards
Davide
[1] http://wiki.spagobi.org/xwiki/bin/view/spagobi_server/Console
Related
I have edited Preferences.tps file from my tableau repository to add following code -
<?xml version='1.0'?>
<workbook>
<preferences>
<color-palette name="My Custom Palette" type="regular">
<color>#75787B</color>
<color>#A7A8AA</color>
<color>#BBBCBC</color>
<color>#B7C9D3</color>
<color>#C6BCD0</color>
<color>#E4D77E</color>
<color>#D9C89E</color>
</color-palette>
</preferences>
</workbook>
Upon restarting the Tableau, I still can't see my color pallet in there. I tried searching online for possible solutions and have even replaced the code with custom codes available online. No luck though!
For continuous/ordered data, the type of the color palette would need to be "ordered-sequential" or "ordered-diverging".
See the link below for more info about creating a custom palette and with examples of various types.
https://onlinehelp.tableau.com/current/pro/desktop/en-us/formatting_create_custom_colors.html
For example:
<?xml version='1.0'?>
<workbook>
<preferences>
<color-palette name="My Custom Palette" type="ordered-diverging">
<color>#75787B</color>
<color>#A7A8AA</color>
<color>#BBBCBC</color>
<color>#B7C9D3</color>
<color>#C6BCD0</color>
<color>#E4D77E</color>
<color>#D9C89E</color>
</color-palette>
</preferences>
</workbook>
Ordered-diverging above produces:
If there are multiple versions of Tableau installed, try testing the custom colors on default one. it works.
I am having a problem while using SAP UI5. I am using a NumericContent Tile. Here I want to set "km/h" as a scale, but it always gets abbriged to "km/".
How can I prevent this?
<TileContent footer="{i18nExtended>SpeedTripMax}" class="sapUiSmallMargin">
<content>
<NumericContent value="{mymodel>/SpeedTripMax}"
truncateValueTo="6" scale="km/h"/>
</content>
</TileContent>
I do not know why it is happening, but according to api one should use sap.suite.ui.commons.GenericTile instead of sap.suite.ui.commons.NumericTile because it is deprecated since version 1.25.
Try GenericTile approach.
EDITED 10:42 120717:
I tested it on my system and it is bug, because k/h works fine:
The max string length is just 3 signs:
I was testing it within GenericTile.
I am adding a SearchField with suggestions in the XML view. When I execute, I get the error
Error: Cannot add direct child without default aggregation defined for control sap.m.SearchField.
Please tell me what mistake I am making.
<SearchField
placeholder="final search"
tooltip="Search for datastore source names"
suggestionItems="{/records}"
selectOnFocus="true"
>
<suggestionItems>
<SuggestionItem
text="{dbname}"
description="{dbname}"
/>
</suggestionItems>
</SearchField>
Try to have a look to this example
sap.m.Input
suggestionItems="{/ProductCollection}" is the collection with all the available entries, text="{Name}" is one of the attributes of the collection item.
Check this example without search help https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.InputSuggestionsDynamic/preview or https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.InputSuggestionsCustomFilter/preview
You must be using an old UI5 version. The aggregation suggestionItems was introduced in 1.34.
Here, you can see that the app crashes throwing the same error if run with the version lower than 1.34: https://jsbin.com/qepojux/edit?html,js,output
To see with which UI5 version the app is currently running, press Ctrl+Left Alt+Shift+P.
See also Versioning of SAPUI5.
I'm using the Visualizations Addon for Vaadin and I want to implement the org chart and it works perfect.
What I want to do is add html labels to it, as the original gwt chart demo shows.
How can I do it?
Thanks!!!!
To use the HTML labels, you need to add HTML to the labels and set the allowHtml option to true. I'm not familiar with the Vaadin implementation, but based on the demos, you probably want something like this:
OrganizationalChart oc = new OrganizationalChart();
oc.setSizeFull();
oc.setOption("size", "medium");
oc.setOption("allowCollapse", false);
oc.setOption("allowHtml", true);
oc.add("CEO", "", "<b>CEO</b> Bert Big");
oc.add("CIO", "CEO", "<b>CIO</b> Charly IT");
oc.add("CFO", "CEO", "<b>CFO</b> Funny Muny");
oc.add("Strategy", "CIO", "<b>Strategy</b> Willy Wonder");
Mozilla is spitting out
DnD is not defined
errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined? Has anyone come accross gotchas with using richfaces dnd?
We are using Richfaces 3.2.1 (drag and drop started in 3.0.0 acording to docs)
An example of how we are using this:
<a4j:outputPanel><rich:panel>
<rich:dropSupport dropListener="#{myBean.dropAction}>
<a4j:actionParam value="#{someData}" name="paramData" />
</rich:dropSupport>
<a4j:repeat value="#{myBean.list}" var="item">
<a4j:outputPanel>
<rich:panel>
<rich:dragSupport dragValue="#{someOtherData}">
<a4j:actionparam value="#{someOtherOtherData}" name="secondParam" />
<h:outputText value="#{item.name}"></h:outputText>
</rich:dragSupport>
</rich:panel>
</a4j:outputPanel>
</a4j:repeat>
</rich:panel></a4j:outputPanel>
My Problem: typo in naming of JBoss portlet deployment xml files
Other things to check (from week of research):
Are you deploying the necessary richfaces jar files?
Do you have other js scripts that are causing namespace issues like jQuery or prototype?
It's an old thread, but my answer is: Inside tag < rich:dragSupport/>, must be included < rich:dndParam>.
See http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf?tab=usage&cid=289435 for more information.
PD: Sorry for my rustic English, I'm from Argentina...