Am trying to show multiple Bar Charts using Jfreechart API on a single page, all the charts from the same domain. Wondering if it would be better to use iFrames or are there any other alternatives? If i were to do this with Ajax, something like on page load show the bar charts in each div's, what would be the way to go about it? Would highly appreciate if anyone can throw more light on this.
I would recommend Flot for web-based charting even over my own open source API XChart, which is geared more towards desktop applications. Here is a HelloWorld type example application with source code demonstrating Flot that I made at one point. If more you're more interested in fetching a JPEG containing a chart, you can see how I do it with XChart (Bonus Example, bottom of page), and you could probably do something very similar with JFreeChart.
Related
I've developed an application in pyqt and matplotlib which allows the user to drag and edit plot data and I need to provide the same functionality in a web browser. I've looked at d3.js but the learning curve seems too steep for the time I have available.
I need advice on which Library/Framework can deliver my needs. Users should be able to select a number of points on a chart and be able to drag them without any noticeable performance penalty. bokeh and mpld3 seem like good candidates. Can anyone advise if these libraries or any other would work well for my needs?
Bokeh provides a number of standard mechanisms to enable it, mainly via JavaScript or Python callbacks. There is a number of drag tools like BoxSelectTool or LassoSelectTool for which you could define a callback but it is also possible to attach a callback to the canvas or plot's data source object.
Additionally it is possible to add a new functionality to Bokeh by writing your own extensions using TypeScript. See Bokeh documentation here.
I'm currently working in an Angular 4 app which has to display an image in which anyone could mark a point and add a text, I've seen a lot of Jquery Plugins that do the work, but I don't like the idea of combining Jquery and Angular, anyone knows about an angular component that works for generic pictures?
A quick google search, brought up this tool, which seems to have the functionality you want, though may be a bit overkill. I haven't used it myself, so I have no idea how well it works: https://www.npmjs.com/package/ng2-photo-editor
Alternatively, using the canvas API isn't too difficult for something as simple as overlaying text and marking some points. This tutorial seems to go through some of the basics: https://objectpartners.com/2016/09/22/using-the-canvas-api-in-angular2/
Currently I am trying to build such customization of product in Bigcommerce Storefront that allows to display image with dynamic text, which was entered in Textbox. That means product image preview should be shown INSTANTLY with new image with written text.
so that the end user will know how the final product will looks like and also same image should go in shopping cart as well.
I know that there is an app on Shopify named as Product Builder.
Is this possible to do it on Bigcommerce?
Thanks in Advance
It's definitely possible with some fairly advanced client-side code. Unfortunately I don't know of any plug and play systems or apps for Bigcommerce that will achieve what you're looking for, but there are a couple ways to get a live updating product preview if you're willing to get your hands dirty.
Here's an example from my site. Click the button under "personalize this item", and you'll see a live preview image like you describe in the modal. Enter some text and change the monogram style and color, the preview image should update pretty quickly every time you change an option. A solution exactly like mine may not be feasible for you, since that site is using a pretty complex React/Redux implementation built on an extensively customized Stencil theme... it's far from a turnkey solution. That said, you could implement something similar without needing a totally custom app.
The image preview itself in the example above is powered by IMGIX.com. They offer a great service at a fantastic price. Basically my system translates the user-selected Bigcommerce option into a URL string per IMGIX's URL-based API. Displaying the live preview is then as simple as changing the image's src attribute to the corresponding IMGIX URL on every input change. I do this in a React component that consumes a Redux store, but something similar could definitely be done in the framework of your choice, or plain old vanilla JavaScript. Cloudinary offers a similar (maybe even a little bigger) feature set to IMGIX, but I found IMGIX to be a bit faster, and the pricing was considerably less for my usage.
You could also write something that uses the HTML5 canvas to overlay text and effects on an image, and thereby avoid using a third-party service. I found such a solution to be way more work and way more taxing on the client-side device, but it'd definitely be another way to skin the proverbial cat.
There may be other viable solutions out there, but the above has been my experience in implementing something similar to what you're looking for on Bigcommerce. I hope this is helpful!
I'm making a single page mobile app with Backbone.Marionette and would like to implement page slide transitions. I know how to achieve this via adding and removing the proper css classes for the animation but I'm having trouble with Marionette regions and managing when these classes are being added. I would like the current view in the region to slide out and the next view slide in. how can I accomplish this with regions or layouts in marionette? P.S i'm a newbie with marionette.
You'll need to write a custom Region implementation to facilitate the transition. There's an open ticket on Marionette that has the core code for making this work: https://github.com/marionettejs/backbone.marionette/issues/320#issuecomment-9746319
But you'll need to adjust this code for your specific needs. Be sure to read the comments and discussion around it. I've used this core code for similar needs many times, but haven't found the optimal way of integrating it in to marionette, yet.
Here is a custom region demonstrating view transitions: http://codepen.io/somethingkindawierd/pen/cpiEw
I am currently trying to learn some more about web design and I used an extention on google chrome to show me all the the images on a webpage. When I did it on google.com, I found this image at https://www.google.com/images/nav_logo101.png:
What is this technique called? How can I use it? Links to further material would be appreciated.
This is called a CSS sprite. See e.g. here (or Google) for more information.