If I run this code below in jqplot I get all lines(series) rendered on the graph:
series:
[
{label:'qqq', color:'#CD0000',show:true},
{label:'www', color:'#FFAA00',show:true},
{label:'eee', color:'#9CCB19',show:true},
{label:'ddd', color:'#3299CC',show:true},
{label:'ccc', color:'#871F78',show:true},
{label:'ggg', color:'#BF5FFF',show:true}
],
but if I run this code below to show only one series on the graph which is fine and the others are crossed out, but if I want to enable them again by unticking them, this does not work anymore:
series:
[
{label:'qqq', color:'#CD0000',show:true},
{label:'www', color:'#FFAA00',show:false},
{label:'eee', color:'#9CCB19',show:false},
{label:'ddd', color:'#3299CC',show:false},
{label:'ccc', color:'#871F78',show:false},
{label:'ggg', color:'#BF5FFF',show:false}
],
Can anyone help please?
you can do it by using this piece of code:
graphPlot.series[0].show = true;
graphPlot.redraw(false);
You can also specify the index of any series in the above code and then make its show property to true or false.
Add seriesToggle under the legend/rendererOptions with a value other than 'off'
http://www.jqplot.com/docs/files/plugins/jqplot-enhancedLegendRenderer-js.html#seriesToggle
false to not enable series on/off toggling on the legend. true or a
fadein/fadeout speed (number of milliseconds or ‘fast’, ‘normal’,
‘slow’) to enable show/hide of series on click of legend item.
You can find a working example here
Once you have implemented something and if you still have troubles feel free to ask for any help.
Related
I have 2 questions need your help.
I would like to add a button on each plot to be a setting button. I use label with event listener and it works well ( as shown in attached file). However, my client asked me to change from normal text to graphic icon? How should I proceed?
As you can see from the attached image, the third plot is macd series. The value rage is from -3e-8 to 3e-8 (by my observation). I manually set the maximum and minimum, and it get incorrect scale as shown.
How should I set the maximum and minimum for yScale?
I don't know how to get maximum and minimum value from a series. Can you suggest me?
A1 – Unfortunately, the current version of AnyChart doesn't provide an opportunity to add custom-made buttons inside the chart. But you can use a trick and use stage based layout. It means that the container includes a stage. The stage includes the stock chart all other elements by layers. Using this approach you can place an image (icon) upon the plot and set a listener just as for the 'settings' label.
For details, please, check the sample in the comment below.
A2 - We are planning to fix this behavior in 8.4.2 update (approximately by the end of November 2018).
I will notify you when the fix becomes available.
As a temporary workaround, you can get min /max value from your MACD indicator. For details, please, check the sample in the comment below.
You can apply min/max to the yScale of plot #0 like this:
chart.plot(0).yScale().minimum(minValue);
chart.plot(0).yScale().maximum(maxValue);
We are glad to inform you that we have released 8.4.2 update which brings many fixes and improvements. This update also includes a fix on the issue you reported. Now calculation of min/max of Y-scale works properly with small values. Update your binaries to get the fix.
I'm having trouble with my Kendo UI Chart, where I want data stacked and grouped.
The problem is that when I group the data, the bars is no longer chronological (in different browsers, more on that later).
Can someone please help?
I've set up an example in Telerik Dojo.
This seems to work, except in Chrome.
However, this is just a part of the code. The original code is angularjs-based, and with a whole lot of code to process settings to create options. That however, works in Chrome and Firefox, but not in IE and Edge.
Can someone point me in a direction to solve this in "all" browsers?
So, my co-worker Martin pointed me to this solution:
dataBound: function(e) {
var axis = e.sender.options.categoryAxis;
axis.categories = axis.categories.sort();
}
Works great in this minimized example, but didn't work in my more complex code.
Turns out that my code removes the categoryField from the series in some cases. With the categoryField still there, the sorting works.
Now I need to figure out why and when the categoryField must be removed, but that's not a question for Stack Overflow.
Tool tip in SSRS is showing random junk values when hovered over chart area or even sometimes on the data points or plots. Here are some images to illustrate the issue. My question is - is this a bug in ssrs or are there some property settings I can set or is it actually related to my data.. Please help. Many Thanks!
PS: Sorry couldn't add the images because of reputation constraints.
Thank you Chris for the suggestion. I found the solution for this question. Next time onward I'll follow that.
The Solution:
The junk values of tooltip were nothing but values that had either been set or had got set at various levels of the chart- chart area , plot area, series etc. I just had to remove all except the series tooltip. It works fine now.
I have 6 images inside my slick carousel. They take full width space of the screen but they don't repeat infinitely. To explain it further I mean that I want to use only 6 images and if they skip to the left overtime then they will appear from the right once again and again (They will keep repeating)
Are you using bootstrap by any chance? because it has a built in carousel that can infinitely slide. Check out their code and see if you can imitate their logic.
https://getbootstrap.com/examples/carousel/
Edit**
after looking further into it, does this help?
$('.multiple-items').slick({
infinite: true,
});
referenced from: http://kenwheeler.github.io/slick/
I haven't used slick before, but I believe you can set its' infinite property to true. Let me know if that works!
in this fiddle the 'slidesToShow' is 6, so please make sure that your owl item is more than slidesToSwow count. So it will automatically working infinite loop option.
Please visit fiddle
I would like to bounce my actor on y-axis for two
Seconds following a button release event.
I don't know how I can do that using Tweener.
Gnome shell 3.4.
Thanks for any help,
I gave up trying that effect. Instead using Tweener (imports.gi.Tweener), I simply set the opacity of the object from 0 to 255 in 'easeQuadEffect'.
GPaste Integration does what you want. Inspecting the code may be informative.
Search for "Tweener" in the gpaste_integration.js file.