I'm working on project where we are using jFreeChart. I need to use XYDifferenceRenderer and I need it to display difference graph of two functions. These functions don't need to be defined for all X-values. When these functions are not defined I would like to display nothing. So, the graph would look like there are gaps in it.
Does anyone know how to do something like this? I tried to pass null values to both functions, but it did not work. Do I need to extend XYDifferenceRenderer?
Related
I am parsing an XML document to JSON, and eventhough I have the type array declared in the json schema, if there is just one element in the array it gets transformed into an objet like this.
"ListOfCodes":{"Codes":{{"Code":"111"}}}
but I need this:
"ListOfCodes":{"Codes":[{"Code":"111"}]}
I have several arrays in the document and I only get the sqare brackets when there is a multiple array.
and adding the properties manually is not an option.
Anyone know what can i modify to fix this in the logic app?
Unfortunately, there isn't a good solution for us to implement this requirement in logic app. Here is another post which is similar to your problem. To implement the requirement, we can just:
1. Use the "Compose" action to generate the object by hand (manually put all the properties and arrays where they need, potentially using the #array() action.
2. Call an Azure Function or some external code that can more specifically craft a valid JSON.
I also try to test it in some other way, such as use json:Array="true" and use <?xml-multiple?> but they all fail in logic app. So I think the only above two solutions(mentioned in that post) can be used. Neither approach is good, though.
I'm using sanity and trying to figure out what exactly the set, unset, insert functions do. As well there are methods on the PatchEvent class itself and I can't seem to find any documentation on that either.
For example I can see that set in the example takes one argument. But through more research of the code set actually takes two arguments, one being the path and the other being the value. It is unclear how path works and what it exactly does.
Since I am trying to update an object in array it looks like this is something I should be doing as this is what is done in the default ArrayInput. I tried to make it work, but no errors and no updates are happening. This is what I have:
PatchEvent.from(key ? set(key, [idx, '_key']) : unset())
On top of all this I can see that there are methods directly on the PatchEvent that are also being used like prefixAll, prepend, and append. I more or less would just like some good documentation on all of this otherwise I might as well just stick with the HTTP Api and update/manage everything on my own for the custom components.
First of all, I don't have any code yet, as I'd like to understand if what i'm trying to do it's actually possible or not before even try to code it.
Basically, I'm developing an angularjs application, and I need to display some data into charts.
I say charts, because the data is different and I need to display my data using different chart types (bars, lines, area)
So, my idea was to create a directive structured like this:
<my-chart>
<line-chart data="[data]" ...></line-chart>
<line-chart data="[data]" ...></line-chart>
<bar-chart data="[data]" ...></bar-chart>
<area-chart data="[data]" ...></area-chart>
</my-chart>
all the child directives will require the parent directive in order to work.
With this method, I should be able to easily show/hide specific chart based on user selection, but honestly, since I've never developed anything with D3, but i'm learning it now, I don't know if this is even possible or not, or if there's already something that allows my to achieve something like above.
Thanks for any help and sorry if the question is not purely code-related.
There is already an angular library which does something similar to what you want to achieve.
Demo here
Is it possible to have multiple VOICE_CALL options for a given TimelineItem? A scenario would be that I have a Store that has multiple contact numbers. One would be for the 800 number while a second option would be to call a specific store location directly. I have tried adding multiple MenuItems whose action is VOICE_CALL, but not surprisingly it only recognizes the first. Is something like this possible with custom menu items? I am currently writing this in Java.
This is not yet possible with the API. Please file a feature request on our issues tracker if you'd like to see this implemented.
I have a ComboBox and I'd like to fetch data from server first when user type at least 3 characters.
I've used dojo.data.* but it's deprecated and I cannot find something similar in dojo.store.* and xhr|ajax in one sentence. Do you have some tips?
I use declarative markup.
You probably used the dojox/data/QueryReadStore? There is no similar store at the moment I think. The best alternative you have (with the dojo/store API) is the JsonRest store.
But it isn't exactly the same, so you might have to extend it. You should probably start by looking at both API's (the old and the new API) and compare the dojox/data/QueryReadStore and the dojo/store/JsonRest to successfully extend it.