I am trying to do a line chart in Sencha charts 1.0, and it works well. However - the marker circle is being cut by the axis line. You can see it also in the Sencha charts official example (that uses images as markers...): http://dev.sencha.com/deploy/touch-charts-1.0.0/examples/Line/.
I found another example that uses Ext js 4 that the line chart markers are not being cut:
http://dev.sencha.com/deploy/ChartsDemo/examples/chart/Line.html.
I tried multiple things: tried to play with CSS, tried even swithcing the code of Ext.chart.series.Line to the one from Ext JS 4 but with no success. Does anyone know of an easy way of doing it? even a reference to a clue of how doing it?
thanks
It seems like someone else already experienced it before me.
Apparently, Ext.js 4 implements charts using SVG while Sencha Charts 1.0 does it using drawing on Canvas. If the source code was more readable - I could have understood where it uses layers and where should I ask the Chart Canvas to have less z-Index. However, it isn't, and a comfortable workaround is to define 5 px (depends on the radius of your marker points) gutter for each series:
getGutters:function(){
return[0,5];
},
Found the solution in this thread:
http://www.sencha.com/forum/showthread.php?202886-add-space-on-x-axis-in-graph
Related
Somebody knows if OpenLayers 3 had the plugin for free draw on the map like Leaflet.Freedraw ?
Leaflet.FreeDraw
Thanks you
There are no need for a plugin. It's already integrated in the library itself with drawing component ol.interaction.Draw. You will see it has a freehandCondition option.
By default, you just need to go to the official Draw Features demo, choose to draw a "LineString" or a "Polygon" by maintaining Shift button while drawing and it should work.
This is my first question so I hope I am asking this correctly
I made a stock chart using Swing and JFreeChart that paints the all lines leaving from a point that is above the Moving average in red and below in green (see image) (it uses a custom render) .
Now I am trying to update My program to use Javafx8 but I cannot find a way to do this with a Javafx LineChart.
Any help would be really appreciated since I have tried to find a solution for a long time and failed
Thank you
The advanced candlestick chart in the JavaFX Ensemble application has a similar concept. Perhaps you can find some insight there?
I am a newbie to the graph functionality in an iPhone application.
I am having array of numbers for which I want to make the simple static line graph without using the coreplot library since I have already tried this which seemed to me quite complicated.
Can anyone please fix out my problem ?
You can draw Line chart using CoreAnimation.
Alternatively you can use core plot also : http://code.google.com/p/core-plot/
hi You can Draw your simple line chart without using core plot just refer following link.
http://code4app.net/ios/Line-Chart/4fc844616803faf26a000002
here you can get demo for simple line graph.
I hope this will help full to you.
Here I stuck with a problem in drawing the pie chart using coreplot in iphone sdk.
Actually my problem is to represent a line between each slice and the title of that slice I searched for the properties but I didn't found.
Anyone's help will be deeply appreciated.
Thank you all,
Monish.
There's nothing like that built into Core Plot currently. You could make a subclass of CPTTextLayer that draws the connecting line in addition to the text and use that to make custom data labels.
I want to draw a piechart in my application. Do anyone know any code or tutorial to help me out. I found some in the following link
http://rajeev.name/blog/2009/01/18/drawing-pie-charts-using-iphone-sdk/
but if there is any other more efficient way to do it, I want to learn it.
I'm not sure if you know how to do pie charts on other platforms, but there really are some basic techniques that you should be aware of and understand, before embarking on creating pie charts on ANY platform.
See here for a pretty good discussion. There are many more out there, if you want to learn more.
Applying that to the iPhone isn't going to be child's play, but it's not too hard either. If you are looking for a library to do the work for you, look around and you'd probably find something to give you a head start.
KeepEdge offers an iPhone charting/graphing API:
http://www.keepedge.com/products/iphone_charting/
You can also check the source code of AppMobile, which has a pie chart embedded inside it:
http://github.com/omz/AppSales-Mobile/tree/master
I will recommend you to look at the "Animating Pie Slices Using a Custom CALayer" page!.
there is new, nice Pie Chart 3D library. 3D charts which you can rotate and scale with fingers + protocol for getting information about tapped slice
http://iphone.orpi.pl/?p=20