Skip to Content
Java数据科学实战
book

Java数据科学实战

by Michael R. Brzustowicz, PhD
January 2020
Intermediate to advanced
202 pages
5h 41m
Chinese
Posts & Telecom Press
Content preview from Java数据科学实战
24
|
第
1
章
Series series1 =
new
Series();
Series series2 =
new
Series();
Series series3 =
new
Series();
然后,用
addAll()
方法,而不是用
add()
方法,可以一次添加所有这些系列:
scatterChart.getData().addAll(series1, series2, series3);
从所产生的图中可以看出,这些点以各种颜色重叠在一起,每一种颜色以各自的图例来指
示其标签名。这对于折线图、面积图、条形图、气泡图同样适用。对于
StackedAreaChart
与
StackedBarChart
这两个类,它们的一个特点值得我们关注,那就是除了一个数据是
堆叠在另一个数据之上的,以免在视觉上相互遮挡外,它们运行的方式与其各自的超类
AreaChart
和
BarChart
相同。
当然,有时候,采用多种类型的图对数据进行混合绘制,可视化效果会更好,例如对同一
数据同时采用散点图与折线图。当前,
Scene
类只接受同一种类型的图表。不过,本章随
后将给出一些变通方法。
4.
基本格式
有一些有用的选项,可以使图看起来更专业。首先需要清理的地方可能是坐标轴。通常,
刻度线太小会适得其反。也可以通过设置最小值与最大值来界定图的范围。
scatterChart.setBackground(
null
);
scatterChart.setLegendVisible(
false
);
scatterChart.setHorizontalGridLinesVisible( ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

云安全实用指南

云安全实用指南

Chris Dotson
Kafka权威指南

Kafka权威指南

Neha Narkhede, Gwen Shapira, Todd Palino

Publisher Resources

ISBN: 9787115533302