jfree chart savechartaspng utility not getting new chart - jfreechart

i am using jfree chart to generate pie chart dynamically, but i have problem. When i need to show output on IE6, the chart is not getting refreshed. i need to close the and reopen the browser and then input new value
Can anyone suggest what could be solution for the above problem?

It sounds like you are having caching issues. I assume your chart is loaded from an image tag. If the address for the image tag is the same then IE will cache the image to speed up future loads. There are several general methods to prevent this.
how to clear or replace a cached image
Disable cache for some images
Also note that the image won't change without some type of new request, be it a page refresh or some type of AJAX polling. W3 Schools Info

Related

Adding the new images loaded through ajax to opened lightbox pop-up

i am facing a issue.
I have created a images gallery in which the 18 images are showing by default and if user scroll down to the end of page then more images are adding to the gallery through ajax.
Now suppose when user have 18 images and he opens a lightbox then the opend lightbox has 18 images that he can navigate back and forth.
Now if user scroll the page to end the new images are added to the page and i want to add those images to theopened lightbox.
Please suggest a way to acheive this.
Thanks in advance.
Background
When the user clicks an image, the Lightbox script's start() method is called. This will compile the list of images to show, either a single one, or a set if data-lightbox is specified, by going through the page. These are stored in a an array called album on the lightbox object.
If you dynamically load images, then the user click an image to open Lightbox, things should work as expected, as the compilation of images happens on open.
Solution
In your scenario, the Lightbox is already open, and I'm assuming you have a set of images being browsed. You want to let the user continue scrolling while the Lightbox is open and this scrolling will dynamically load more images onto the page that are part of this set.
There is no documented way of doing this. But, you can fix your issue by digging into the internals pretty easily. This is normally not recommended, but no major changes to the Lightbox2 API are expected, so this should be safe (no guarantees though).
On scroll, once new images are loaded, add them to the Lightbox object's album property manually. Then call updateDetails() to refresh the UI.
lightbox.album.push({
link: 'fruit-roll-ups.jpg'
});
lightbox.updateDetails();

how to show progress circular in angularjs single page application

I want to use progress circular in my SPA(single page application) and i done it but there was an issue that the shape of circle is showing worse.
For clear understanding i provide an image of circular which was showing in my application.enter image description here
but i don't understand why the shape of this is showing worse, i don't know, please help me to come out from this problem.
I Found my soulution
a css file in my html file is conflict with the angular js material css file.
so, when i remove that file then everything is perfect.

Angular gridster add custom content

I have just started using angular-gridster library and I am wondering how I can embed an html page in a widget. I mean, how can I 'point' towards an html resource which loads its data separately etc. etc.
For example, I would like to embed a chart of some sort in a widget with the purpose of creating a dashboard.
Thanks!
You can put an iframe element inside of a Gridster widget. From experience, my recommendation is to detect when the user begins resizing a widget with an embedded iframe, and temporarily set display: none on the iframe during the resize, otherwise the browser will have big problems. Once the resize is done, reveal the iframe again.
I have actually solved it using this answer: Widgets with different dynamic content (angular-gridster)
Slightly more complicated than just using an iframe, yes, but then again you have a better modularity - each widget will have its own directive and all that. Thank you emackey!

CodenameOne Image Slider using Image Viewer

Is it possible to achieve something similar to the attachment using imageviewer. I already have images loaded using the DefaultListModel but I would like something similar to the screenshot where part of the next image shows so the user knows there is a next image and if possible the slider at the bottom of the screen.
Thanks
Most of the people who did that used the Tabs widget which is more suitable for that sort of usage. You can see some discussion of this here:
https://groups.google.com/d/msg/codenameone-discussions/06hLjMkia-4/4oi4wBaMKe0J

Extjs Bar Chart For Live Data

My Application get live data from server, which includes number of operations executed and time at which it executed.
Now I am trying to implement a bar chart out of it which looks like splunk event chart which displays bars for every minute and should allow user to zoom in and zoom out.
I tried extjs stackedBarchart but it didnt looked like the one which i want to use.
Any ideas?
Appreciate your help! Thanks

Resources