I am using jfreechart (specially ChartFactory.createTimeSeriesChart()). Is there a way to signal events like Google Finance charts, see the A, B, C etc on the right and in the chart.
Hi,
I'm new to drawing the chart using chartfx
can you give me the meanings of teh following methods,
they are kinda confusing...I did not find documentation anywhere.
GetValue ( )
GetXValue ( )
PutItem()
Thanks,
Arjun
Have Microsoft Chart Controls been integrated into .NET 4 release of WPF? I've found some statements supporting such claims but i cant find those controls :/ How do I use them in WPF4?
I want to build a LineChart with many data. The horizontal axis correspond to the date, but I am not able to find out how to customize the horizontal axis label.
With this code, the chart display all the date on the axis and it's not readable.
How can we customize the label so it displays only several points on the axis gradually according to the range?
Thanks for replying.
I have stacked bar chart in which the number of columns is dynamic, can change from 1 to n columns. I want the spacing between the charts and width of the bar to be consistent. How do I fix it. Please suggest solutions / ideas.
This has been bugging me every since I started to use Python - in PHP you have this ability to use a string as a key in an array. PHP calls these associative arrays. Python calls these dictionaries.
Does anyone know of a premade chart that will let me see what the different terminology is in different languages. For example:
PHP | Python
Assosicative array | Dictionary
I'm new to SQL Server. how can I add the values of my Pie Chart to the Legend next to the Series fields? In this case I want the percentage.
For example:
United States 43.2%
Canada 22%
etc.
Hi,
I have a line chart with four lines:
- Total
- A
- B
- C
It is a only a limited number of lines, and I want to allow the user to specify via input parameters what lines to show (i.e. ShowTotal, ShowA, ShowB, ShowC booleans).
Can it be done, and how?
There was an earlier thread on Java graph or chart library, where JFreeChart was found to be quite good, but, as stated in its FAQ, it's not meant for real-time rendering.
Can anyone recommend a comparable library that supports real-time rendering? Just some basic xy-rendering - for instance, getting a voltage signal from data acquisition system and plotting it as it comes (time on x-axis, voltage on y-axis).
I'm a bit confused with this one.
I have a Dataset with a BackupDate and a BackupTime as well as a BackupType. The BackupDate is comprised of 12 characters from the left of a datetime string within a table. The BackupTime is comprised of 8 characters from the right of that same datetime string. So for example: BackupDate would be 'December 12 2008' and the BackupTime would be '12:53PM.'
I have added an XY-scatter chart to the report. I've added a 'series' value for the BackupType (so one can distinguish between a Full/Incr/Log backup). I've added a category value of BackupDate and set the Scale for the X-axis from the Min of BackupDate to the Max of BackupDate. I've then added an item to the Values with the Y variable set to BackupTime and the X variable set to BackupDate. The interval for the Y-axis is 12:00AM to 11:59PM and the formatting for the labels is 'hh:mmtt'.
The BackupTime matches the format of the Y-axis. The BackupDate matches the format of the X-axis. 10 entries are retrieved by my Dataset and the Legend is properly populated by the BackupType field.
No points are being plotted on the graph and no markers/pointers are shown if they are enabled. There should be a point on the graph for every point in time of each day there is a backup of a specific type.
Am I missing something? Does anyone know of a good tutorial dealing specifically with XY-scatter graphs and using them in a way I intend?
I am using the 2005 version of SSRS rather than the 2008 version.
Screenshot of what my chart currently looks like:
In case it could be dataset related:
SELECT TOP (10) backup_type, LTRIM(RTRIM(LEFT(backup_finish_date,
12))) AS BackupDate, LTRIM(RTRIM(RIGHT(backup_finish_date, 8))) AS BackupTime
FROM DBARepository.Backup_History
As requested, here are the results of this query. There is a Where clause to constrain the results to a specific database of a specific server that was not included in the above SQL Query.
Log Dec 26 2008 12:00PM
Log Dec 27 2008 4:00AM
Log Dec 27 2008 8:00AM
Log Dec 27 2008 12:00PM
Log Dec 27 2008 4:00PM
Log Dec 27 2008 8:00PM
Database Dec 27 2008 10:01PM
Log Dec 28 2008 12:00AM
Log Dec 28 2008 4:00AM
Log Dec 28 2008 8:00AM
I am feeling problem when generating .pdf file from excel2007(.xlsx) file using code like excelWorkBook.ExportAsFixedFormat(paramExportFormat,
paramExportFilePath, paramExportQuality,
true, false, paramMissing, paramMissing, paramOpenAfterPublish,paramMissing);
THe generated pdf having chart image show with border on XP 2003 server
so it cut some other part. Which not come if generated locally on xp system.
When creating a flex Chart, the list of colors is always the same, something like (orange, green, blue, ... ) I imagine that the Flex Charts use any array of default colors, Is there a way to get this array ?
I have a mysql table - request_events with three fields; request_eventsid,datetime,type.this table will track all the activities of my website day wise and also type wise.thus,type may be 1 or 2.I need to display an open-chart for understanding the progress.So I need to retrieve the ratio of type2/type1 as input day wise.How can I get all these input for last 30 days from this table.Please give me some idea....It already kill my week end.Please help me
We're using the MS Chart for .net, but encountering the "image not found" problem for which there doesn't seem to be a solution.
Are there any alternatives for generating simple charts?
Hi All,
I have a c code and I want to extract some patterns of code which contains instructions of communication etc and build a sequence chart from that.
Is there any way I can do that?
Thanks
is there any simple way to replace an image inside word-document with an excel chart using VB and preserving all of the format details such as image frame style, text wrap, anchor, etc. (thus the image is just a placeholder in a template document)
I have a flex line chart. Instead of the default behavior of having to hover over parts of the line to see the data points, is there a way to change the rendering of each point and have them always displayed? (almost like a connect the dots type view).
If I was using the following:
https://developers.google.com/chart/interactive/docs/gallery/annotatedtimeline
Assuming I did not have the line:
data.addColumn('number', 'Sold Pencils');
or anything referring to 'Sold Pencils';
How do I make it such that when the user clicks an external link 'Sold Pencils' I am able to retrieve the data and add it to the graph (without the user refreshing the page). Is there some way to redraw the graph/add the column in this way?
http://chart.apis.google.com/chart?cht=lc&chs=600x400&chd=t:171,811,629,507,460,390,434,379,329,312,368,329,329,329,352,330,299,323,340,325,329,1895,1047,736,617,684,620,515
If you go there on your browser, you'll notice that you see a graph. However, the axis are messed up! And it seems like I can't see the ups and downs of my line graph. WHy?
I don't get what's wrong. I just want to plot the simple stuff on a line chart. Just those data points. Nothing more, nothing less!
Hello,
I am new to flex development and I am stuck with this error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.charts.series::LineSeries/findDataPoints()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\series\LineSeries.as:1460]
at mx.charts.chartClasses::ChartBase/findDataPoints()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\chartClasses\ChartBase.as:2202]
at mx.charts.chartClasses::ChartBase/mouseMoveHandler()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\chartClasses\ChartBase.as:4882]
I try to create a chart where I can move the points with the mouse
I notice that the error doesn't occur if I move the point very slowly
I have try to use the debugger and pint some debug every where without success
All the behaviours were ok until I had the modifyData
Please let me know if you have some experience with this kind of error
I will appreciate any help.
Is it also possible to remove the error throwing because after that the error occur
if I click the dismiss all error button then the component work great
there is the simple code of the chart
<fx:Declarations>
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.charts.HitData;
import mx.charts.events.ChartEvent;
import mx.charts.events.ChartItemEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var selectItem:Object;
[Bindable]
private var chartMouseY:int;
[Bindable]
private var hitData:Boolean=false;
[Bindable]
private var profitPeriods:ArrayCollection = new ArrayCollection( [
{ period: "Qtr1 2006", profit: 32 },
{ period: "Qtr2 2006", profit: 47 },
{ period: "Qtr3 2006", profit: 62 },
{ period: "Qtr4 2006", profit: 35 },
{ period: "Qtr1 2007", profit: 25 },
{ period: "Qtr2 2007", profit: 55 } ]);
public function chartMouseUp(e:MouseEvent):void{
if(hitData){
hitData = false;
}
}
private function chartMouseMove(e:MouseEvent):void {
if(hitData){
var p:Point = new Point(linechart.mouseX,linechart.mouseY);
var d:Array = linechart.localToData(p);
chartMouseY=d[1];
modifyData();
}
}
public function modifyData():void {
var idx:int = profitPeriods.getItemIndex(selectItem);
var item:Object = profitPeriods.getItemAt(idx);
item.profit = chartMouseY;
profitPeriods.setItemAt(item,idx);
}
public function chartMouseDown(e:MouseEvent):void{
if(!hitData){
var hda:Array = linechart.findDataPoints(e.currentTarget.mouseX,
e.currentTarget.mouseY);
if (hda[0]) {
selectItem = hda[0].item;
hitData = true;
}
}
}
]]>
</fx:Script>
<s:layout>
<s:HorizontalLayout horizontalAlign="center" verticalAlign="middle" />
</s:layout>
<s:Panel title="LineChart Control" >
<s:VGroup >
<s:HGroup>
<mx:LineChart id="linechart" color="0x323232" height="500" width="377"
mouseDown="chartMouseDown(event)"
mouseMove="chartMouseMove(event)"
mouseUp="chartMouseUp(event)"
showDataTips="true"
dataProvider="{profitPeriods}" >
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="period"/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries yField="profit" form="segment" displayName="Profit"/>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{linechart}" color="0x323232"/>
</s:HGroup>
<mx:Form>
<mx:TextArea id="DEBUG" height="200" width="300"/>
</mx:Form>
</s:VGroup>
</s:Panel>
UPDATE 30/2010 :
the null object is _renderData.filteredCache from the chartline
the code call before error is the default mouseMoveHandler of chartBase to chartline.
Is it possible to remove it ? or provide a filteredCache
Hi, I'm trying to develop a gantt like chart using jquery plugins and asp.net mvc2...
on the y-axis i like to have names of people to whom tasks will be assigned...
while on the x-axis i like to have the tasks...
i haven't found good plugins for this...so any suggestions???
it is also important to have more than 1 task on a row, i.e. sam kan have more than 1 task on the same row...
i'm thankful for your help
Lina
We're working on a WPF-based desktop application that charts financial markets information (candlestick charts, overlayed indicator curves, volume, etc). The charts are displayed in real-time with responses to market ticks being shown in real-time (updating one to two times per second is probably a reasonable display refresh policy). We've been looking for a software package (commercial is fine by us) that has the capability of displaying these charts. Additionally, we'd like to have an approach that can render the initial amount of data in a reasonable timeframe (give or take 100-200ms from the time we hand the data over to a complete render on screen). Also we view multiple charts (5-10) simultaneously so a solution that chews up 50% of my CPU to display one chart really isn't going to work well.
Has anyone had any good experiences with charting controls. We've had to hand roll the last few charts we've done and I'd prefer not to do it again.
Solutions that can make use of the GPU to minimize CPU utilization would be nice as well.
Hi all,
Please find the below code
<?xml version="1.0" encoding="utf-8"?>
];
]]>
This code is drawing a colum chart with two columns and drawing a line across the top of both columns. I have two requirements :
the line need to be dashed
as of now the line starts from top right corner of the first column to the same corner of the second column. How can i shift the line to the left, so that it starts from center of first column to center of second column.
Regards, PK
I have some Visual Basic Code that creates a chart for each row. It sets the series values using this code:
.SeriesCollection(1).Values = "=" & Ws.Name & "!R" & CurrRow & "C3:R" & CurrRow & "C8"
What I am struggling with is how do I set the series labels? The series labels will always be the 1st row and be in the corresponding column. I know this is much simplier than the code above, but I am stumped.
Any help is appreciated.