<?xml version="1.0"?>
<!-- charts/FindDataPoints.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.charts.HitData;
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"January", Profit:2000, Expenses:1500},
{Month:"February", Profit:1000, Expenses:200},
{Month:"March", Profit:1500, Expenses:500},
{Month:"April", Profit:500, Expenses:300},
{Month:"May", Profit:1000, Expenses:450},
{Month:"June", Profit:2000, Expenses:500}]);
public function handleMouseMove(e:MouseEvent):void {
// Use coordinates to get HitData object of
// current data point.
var hda:Array =
chart.findDataPoints(e.currentTarget.mouseX,
e.currentTarget.mouseY);
if (hda[0]) {
ta.text = "Found data point " +
hda[0].chartItem.index + " (x/y):" +
Math.round(hda[0].x) + "," +
Math.round(hda[0].y) + "\n";
ta.text += "Expenses:" + hda[0].item.Expenses;
} else {
ta.text = "No data point found (x/y):" +
Math.round(e.currentTarget.mouseX) +
"/" + Math.round(e.currentTarget.mouseY);
}
}
]]></mx:Script>
<mx:Panel title="Plot Chart">
<mx:PlotChart id="chart"
mouseMove="handleMouseMove(event)"
dataProvider="{expenses}"
showDataTips="true"
mouseSensitivity="5"
>
<mx:series>
<mx:PlotSeries
xField="Profit"
yField="Expenses"
/>
</mx:series>
</mx:PlotChart>
</mx:Panel>
<mx:TextArea id="ta" width="300" height="50"/>
</mx:Application>
分享到:
相关推荐
business problem, identify where the key leverage points are and determine where quantitative techniques of analysis--such as data mining--can yield most benefit. It addresses techniques for ...
Consumers, sensors, or scientific experiments emit data points every day. In finance, business, administration and the natural or social sciences, working with data can make up a significant part of ...
网上找的绘图的小软件Select data series on left panel [Points]. Select menu item <Fit><Best Function>. The 'Find the best line' Wizard appears. On step 1 choose X and Y ranges and weighting scheme. ...
List<datapoint> dataPoints = new List datapoint>(); // 添加数据点 dataPoints.Add(new DataPoint(1, 10)); dataPoints.Add(new DataPoint(2, 20)); // 将数据添加到系列 Series series = new Series(); series....
By delving into these knowledge points, IT and security professionals can gain a comprehensive understanding of managing catastrophic loss of sensitive data. This not only involves technical measures ...
Write maintainable, extensible, and durable software with modern C++.... Even if you are a seasoned C++ developer, there are nuggets and data points in this book that you will find useful in your work.
# Plot datapoints plt.figure() plt.scatter(X[:,0], X[:,1], marker='o', s=25, color='k') # Build nearest neighbors model knn = NearestNeighbors(n_neighbors=num_neighbors, algorithm='ball_tr
腾讯的研究论文,摘要:Time series anomaly detection is usually formulated as finding outlier data points relative to some usual data, which is also an important problem in industry and academia....
The idea was to create several points in 2d, and then map them to 3d with some smooth function, and then to see what the algorithm would find when it mapped the points back to 2d.
It points out which metrics to use to objectively measure performance and what data really counts, along with where to find it, how to get it, and how to analyze it. The book also shows how all team ...
With both explanation and demonstration, Davey guides you step-by-step through the entire process of generating and validating an idea, setting entry and exit points, testing systems, and ...
plot(entry_points, data(entry_points), 'ro', 'MarkerSize', 8); % 买入点 plot(exit_points, data(exit_points), 'go', 'MarkerSize', 8); % 卖出点 legend('价格', '长期MA', '短期MA', '买入', '卖出'); ``` ...
The control is able to do that by plotting only the new points of data, not the complete series. The chart is also able to display static data. This control is the result of long hours of work and ...
This book contains illustrations and step-by-step explanations with bullet points and exercises for easy and enjoyable learning. Benefits of reading this book that you’re not going to find anywhere ...
theta_k = pi/2/G + (1:G)*pi/G [1 60] h =0.2 discarding the less reliable data points index = find(radius>=h) [1 50] radius = radius(index) [1 50] theta = theta(index) [1 50]
set_calib_data_observ_points (CalibDataID, 0, 0, I, RCoord, CCoord, 'all', StartPose) endfor 下面将Halcon中提取目标点的大致原理说一下: 首先find_caltab 算子对图像高斯滤波(核大小为SizeGauss),...
#### Discussion Points 1. **Comparison of Methods:** - Method 2 (alphabetical order) is generally more efficient than Method 1 (random insertion) for finding books, but it requires more careful ...
The problem of matching measured latitude/longitude points to roads is becoming increasingly important. This paper describes a novel, principled map matching algorithm that uses a Hidden Markov Model ...