Is it possible to make SVG charts in iOS? - ios

Is it possible to use something like SVG in native iOS applications? Or is it just a web standard?
If it's not possible, what are the other options for making vector charts in a iPhone app?

SVG is part of the HTML5 spec and Apple makes quite a marketing point about how they are standard compliant, so you should be able to display SVG in Safari.
I don't know enough about native iOS development to know if there is an SVG parsing library available.

Yes, you can use one of the SVG rendering libraries to display SVG that you dynamically generate. I recently used SVGgh, which I wrote, in a project for a client to display some data charts. I don't know that there are any libraries to make it easier to build the actual charts, but making simple bar and pie charts are fairly easy if you are conversant with SVG.

Related

Image recognition for text in React Native

This may be a crazy question but I've seen done with apps. Is there any kind of API that can be used to recognition the text within an image (the way chase recognizes numbers on a check) OR, is there an API that can be used to search (lets say google) for information based off an image? Example would be if I took a picture of a business logo, google will search for a business listing that fits that logo?
I know crazy question but I want to know if it can even be done. If it can, can it be used with React Native? Thanks!
The React Native Tesseract package only supports Android. iOS support is pending but no timeline when it will be done.
The pure Javascript implementation of Tesseract would offer cross-platform support in React Native.
http://tesseract.projectnaptha.com/

Charts with swift

I'm new in iOS development and want to create an app with some charts. I decided to start development with swift because it seemed to be more easy to learn for me as Java developer. But meanwhile I think using objective-c would have been the better choice because AFAIK there is no chart library available that match my criteria:
usable with swift
has line and bar charts
ability to draw charts with date and time axis
free to use or low price < 100 USD
Common chart libraries like JBChartView, Core-Plot and iOSPlot do not fulfill my criteria so I'm thinking about either to use a JavaScript chart library in a WebView or switching completely to objective-c
Is it good practice to use a JavaScript chart API in a WebView? If so, may this make problems on different devices with different screen
sizes and orientations? What are common pitfalls with this approach?
Edit:
Core-Plot release-2.0 works well with Swift
You could use iOS-Charts
This is a great chart library written in swift and is on github:
There are some great tutorials going through the basics here.
iOS-Charts seems to fit your criteria
It is completely free
It is written specifically for Swift
It has 8 different graph types
You can use this powerful ios charts library https://github.com/danielgindi/Charts
or you can use this SVG library to create your own https://github.com/exyte/Macaw
If you are looking for commercial library (I haven't used this yet) https://www.shinobicontrols.com
This is a great telegram channel, where you can find different useful information about ios development and libraries https://t.me/iostalks
As noted in the comments on the linked Core Plot issue, you can use Core Plot in Swift as long as you use the code from the release-2.0 branch. The changes on that branch resolve the issues with NSDecimal that 1.x versions of Core Plot have.

how to develop DICOM Editor in asp.net

i wanted to develop a DICOM Image editor in Asp.net
are there any library available for that.
or can i do something like
create an Jpeg from DICOM editor. edit the same image with lines or shapes and convert it back to DICOM Image file is that possible? if yes how?
i am new to DICOM. hence please help me to understand the DICOM.
There are a number of DICOM libraries for .NET. Refer to this question for more info.
UPDATED: another one
As far as an ASP.NET viewer - what do you want this viewer to do. In other words, what is the target audience? Is it mobile users? Then silverlight, wcf and flash are out - the most used web-based larger-screen mobile device is the iPad, which supports none of those technologies. Is it desktop users? Flash could be the answer then, the install-base is quite high, and Flash has good support for a variety of image formats.
Do you need this viewer to be diagnostic-grade? In other words, do you need 16 bit window/level? cine loop for ultrasounds at the correct frequency? If yes, then you'll need to figure out some of this yourself. Existing mobile tools aren't so great at some of the above (specifically 16 bit grayscale).
HTML5 has some of the above capabilities, and is mobile-friendly. Anyway, start with the intended use for this tool, and that will lead you into a specific direction based on the requirements you come up with!
Here's a good place to get started:
Medical Image Format FAQ - DICOM Information Sources
An open-source library that could be suitable for ASP.NET development is mdcm that allows you to develop Silverlight assemblies that could be used from your web application.
There is also a successor to mdcm denoted fo-dicom, however I am not sure whether fo-dicom currently is applicable to Silverlight.

Rendering dynamic image mock-ups in Ruby on Rails

I am trying to create an app that allows a user to create a text treatment (either by uploading a graphic or in a WYSIWYG editor), and upload it -- the app would then render the uploaded text treatment and show that, overlaid on the side of a building (for a mockup of what it would look like if it were on a billboard, building, or what-not)
I am developing the app in Ruby on Rails, and I know some image-processing libraries like RMagick, allows you to manipulate uploaded imagery in special ways, but I wanted to see if anybody had any other advice on the best way to implement this.
Sorry for the vagueness, and thank you for your time!
I do this for one of my clients. RMagick is a fine choice. I personally prefer GraphicsMagick, which is not quite as popular yet is better written (IMHO).
Consider using alpha channel transparency, which makes overlays especially easy. For example, use PNGs with transparent channels.

What's the best way to pass data into a Flex chart from a Ruby on Rails application?

Quite a few methods exist for passing data into a Flex binary from a Rails application. Right now, I'm using the old e4x resultFormat with a xml.erb template. I've done AMF before, but I feel like inlining parameters into the embed itself is a better solution because you don't have to wait for the browser to load a swf binary and the binary to make a web request.
Taking all of that into account, what is the best practice for rendering a Flex widget with a Rails back-end these days?
Sounds to me like you shouldn't use Flex at all. Flex is great for writing applications that load and display data, but is a huge overhead if you just want to display charts. If you're worried about delivering the SWF and the data in two separate responses, you should be worrying about the 200-300 K overhead of the Flex framework.
Go with something more lightweight like Flot and deliver the JavaScript code that generates the charts along with the data. I don't think Flex is a suitable platform for what you want.
If the chart is just a graphic you are placing amidst normal html content, your solution of custom compiling the swf may be a good one. Of course you should still explore alternatives like Theo's suggestion.
If your whole application is flash, it's a toss-up. If it is fastest to simply import a swf, go ahead. However, if you need to make things any more interactive, use the data elsewhere, or fetch new data, it would probably be best to use xml templates as you are, or the ActiveRecord::Base#to_xml method if you're lazy.
It depends, are you going to want the charts to be 'live', as in get updated in real-time when data changes? If so then using AMF with a Flex native RemoteObject gives you plenty of polling options, you can also just use a simpler Flex native HTTPService.
Read about them both here: Flex Actionscript 3.0 Documentation

Resources