I am looking for a way to insert a specific comment / note in an image created by JFree Chart. The note can be anywhere on the image (png), above or below the chart.
Is there a way to do this?
To add text, addSubtitle() is a common approach, and TextTitle is a convenient implementation of the Title interface.
If you want to create a comment or not on Image itself... you can do this with the use of Marker.
If you want something below the image/graph use the LegendItemCollection.
Related
I have a diagram like this -
But I want to have a single box for SI-2130, 2131 & 2132, something like this. How do I do that. I tried various things but I'm stuck.
I do see these kind of diagrams, See this figure - but not sure how they did it
You need to edit the shape's geometry section.
First, ensure you have Developer Mode enabled. Right-click on the shape you want to edit and select Edit Shapesheet.
Near the top of the dit window you will see a Geometry section, this determines the shape and outline of your shape. You will need to insert new lines in this section for the new vertices.
For details on how to do this use your search engine on the details of the Geometry section.
Here is a starting place for you:
https://learn.microsoft.com/en-us/office/client-developer/visio/about-the-shapesheet-spreadsheet
Thanks peter. Yea, I got to know about the developer tab, and the options for 'union/intersection/subtract', etc. I could do this using this approach easily
I am using a combined chart (Stacked Column + Line) for my application. Is it possible to change the line plotting?. (somewhat like shown in RED in the image). If yes then how is it possible?
I'm sure you already know the VIZ documentation where you can find all possible properties of VizFrame. As far as I know there currently is no way to get the behavior you're asking for except for writing your own lineRenderer (vizProperties.plotArea.lineRenderer). There is one alternative line plotting mode available which is smoothening it but I'm sure thats not what you want.
However you could use a second series of column chart instead. Just use a standard column chart and add two data series instead of one. I think this would show the exact information you're trying to get with the current diagram just no connection between them.
I'm new to FusionCharts.
I have generated a pie chart with slice, my question is:
When I click on the slice in the pie chart, I need the label name of the slice.
How can I write the on click event and get the name of label?
I don't much about charts and such, I'm fine using Word for this. But in 2D Graphics I've learned you can use
...contains(shape)
...intersects(shape)
To see if shapes are inside eachother (to contain) or if they overlap eachother (to intersect).
When adding a mouseListener, you can use
e.getX() and e.getY()
to get the current X and Y position of mouse on screen.
So something like
for (pieChartPieces p: piece)
{
if (pieChartShape.contains(e.getX, e.getY))
{
//* Some kind of notifier for user pops up here.
}
}
Check out this fiddle here
It uses "dataplotClick" event to retrieve the label of the pie slice.
You have to use link attribute, as seen here.
"link": "JavaScript:populate('411');",
See the jsFiddle.
Don't forget to implement the populate() with the whatever you need to do.
Link to a similar question (with answer).
I've got a kinda requirement in which there is a kinda graph (static picture) on a page. In that picture I need to plot some points dynamically. That means using a shape filled with blue color. The number of points is floating depending upon the number of applicants choosen. How can I make it work or how can I add new elements to report at runtime. Am working in ASP.nET using VB and the AR version is 6.2
If I have understood your query right,then you want to plot some points depending on the dynamic data.
A suggestion would be to make use of Chart control in report. The chart can be bound to anything from a list to an array and the data can be changed dynamically from time to time.
Moreover,you can set the backcolor and other properties of the Chart control to give a look and feel of your choice.
Regards,
Mohita
Sorry if my question makes any confusion.. Actually I was able to make that. So am just sharing that code if it helpful for someone else.. I put this to the report start event. (We are not permitted to make this in details event)
Dim pic As New DataDynamics.ActiveReports.Picture
pic.Image = System.Drawing.Image.FromFile(HttpContext.Current.Server.MapPath(String.Format("~/images/circle.gif", cl)))
pic.SizeMode = SizeModes.Zoom
Detail1.Controls.Add(pic)
I am making an application in iPad which is based on creating pie chart after detecting marks like 280 out of 400. I have to create pie chart based on that marks which shows total marks and also obtain marks.
If someone has an idea about it please let me know.
Take a look at CorePlot's CPTPieChart class
Refer MIMChart-Library which has differnt styles in each category.