I am trying to display a datetime line chart, in a continuous style, using primefaces 3.4 which internally uses jqplot.
It should be possible, according to this:
http://code.google.com/p/primefaces/issues/detail?id=2180
however, my result is just a normal discrete chart.
Has anyone succeeded?
The primefaces author says:
Using new extender feature you can configure the chart the way you want before it is rendered on client side. Extender is simply a javascript function that is called before the plot is drawn so that you can override PrimeFaces provided attributes and add more to support any jqplot configuration option
What am I supposed to put in the extender for the timeline to work?
This was promising:
kevindoran1.blogspot.co.nz/2012/02/using-google-charts-with-jsf.html
but xmlns:ti="http://tradeintel.co.nz/custom" no longer exists (?)
btw, continuous and discrete explained =
https://developers.google.com/chart/interactive/docs/customizing_axes#Discrete_vs_Continuous
Any alternative (free) chart libs, that I can easily integrate with JSF2 ?
This kevindoran1.blogspot.co.nz/2012/02/using-google-charts-with-jsf.html was promising
but xmlns:ti="http://tradeintel.co.nz/custom" no longer exists (?)
I made it work with primefaces look at my detailed post here http://forum.primefaces.org/viewtopic.php?f=3&t=23891&p=78637#p78637
If you have any doubt don't hesitate asking me the details
Related
Do we have undo option in high charts? For example I have few series on chart and I replaced them with new one. Do I have any option to revert it back?
This is a very general question, but 'undo' in the meaning of a special option is not available from the API.
However, there are many options which can be used for removing old and adding new data. In your example, you can use the remove() and addSeries() methods to achieve that.
Demo:
https://jsfiddle.net/BlackLabel/tyvbk62s/
API References:
https://api.highcharts.com/class-reference/Highcharts.Series#remove
https://api.highcharts.com/class-reference/Highcharts.Chart#addSeries
You can also consider using localStorage as a place for storing chart.options.
Example demo:
http://jsfiddle.net/BlackLabel/9b3cx178/
I have downloaded the community samples, installed SDK and run the solution successfully in Visual Studio to use the default add-in. I am now interested in customizing the control to:
1) display specific layers (not all of the active/displayed layers)
2) open to a specified zoom extent.
I have located some of the snippets on the git site (zoom to extent specifically) but do not know how to format the coordinates and am unclear as to what heading they go under. I cannot find related code to mimic and am unfamiliar with coding in C# (pretty well versed in python and AHK). Any help or resources would be GREATLY appreciated. Thanks in advance!
I got this response, for those who are interested:
see thread here
MapControl has a ViewContent property that can be set to any custom view content. In the sample, I am using the MapControlContentFactory.Create method to set the view content (within the InitializeMapControl method in MapControlDockpane.xaml.cs). This Create method has many overloads. This particular overload might be exactly what you need: (Note the first parameter which takes a list of any layers you need)
Create Method: http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic12607.html
public static MapControlContent Create( IEnumerable layers, Envelope initialExtent, MapViewingMode viewingMode )
MapControl's zoom extent is also defined when you create the content using the Create method (the envelope parameter). In the sample, I am listening to the ActiveMapViewChangedEvent and MapViewCameraChangedEvent events and modifying the MapControl's extent to match that. You can remove that for your workflow and set the MapControl's content the way you want it to be.
Display the points at which they merge , I was not able to find any library .....
Displaying any form of charts in iOS can be done in 2 ways.
Using webView to load a html string with the javascript files imported into it.
Using stringByAppendingFormat you can change the data points and refresh the webview.
http://www.fusioncharts.com/blog/2012/02/create-charts-for-iphone-and-ipad-apps-using-fusioncharts-xt/
Using a library to display them Natively. Something like Charts by Daniel Iohen Gindi. It is a bit extensive so just use the line Charts in your case and ignore the others.
https://github.com/danielgindi/Charts
Using the 2nd method (native) will always perform better, but the simplicity of html5 charts make it very easy to implement
To obtain points when lines meet is basically saying when 2 data has the same value. So you can just add an if statement and print the value out or store it as a variable.
I'm using this library,
https://github.com/ChimpStudios/AmCharts
It works cool, but i didn't find how to reload existing chart. When i call multiple times:
self.mapView.chart = self.map
self.mapView.drawChart()
map disappear or it's color set to black. In original AmChart for JavaScript, object has method validateData, but this method i didn't find in IOS library.
If someone used this library, please help, because in github author not answer.
I'm unfamiliar with this specific library/wrapper, but looking in the repo, it does appear that both chart.validateData() and chart.validateNow() are supported.
Example usage in ChartView.m
Is there a way in Orbeon to save TextAreas and RTEs as CDATA sections so that line breaks and other formatting inputted by the user is preserved? In some use cases it's really important not to change what the user has entered and I haven't found a way to accomplish this to date.
Thanks!
In general, formatting and line breaks should be preserved by default. If the input is modified, there are three possible "culprits": the RTE component itself, Tagsoup, and clean-html.xsl. There are certain limitations regarding the RTE component (AFAIK orbeon still uses YUI 2), for example it doesn't handle p elements correctly. Tagsoup and clean-html.xsl should let through most of the standard html elements, but they filter, for example, the canvas element. More on orbeon's RTE element:
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-controls/textarea-control#TOC-Rich-text-editor-HTML-editor-
So, if the content that arrives at your xforms instance is modified, you will need to debug each of the processing steps to check where the modification took place.
If it's a matter of the RTE component, you could try to check if the TinyMCE XBL component works better for you (it uses TinyMCE instead of the YUI2 RTE - i posted it some months ago in the ops-users ML). If it's a Tagsoup matter, you will have to patch the source code (change the Tagsoup config); there's also a workaround to configure Tagsoup using an external config file (it should be available in the ML archives, too). If it's a clean-html.xsl issue, you can easily created your own clean-html.xsl, it's described in the wiki page (see above) HTH fs