Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1ambda/zeppelin-highcharts-heatmap
Zeppelin extension for heatmap chart using highcharts
https://github.com/1ambda/zeppelin-highcharts-heatmap
helium visualization zeppelin
Last synced: about 2 months ago
JSON representation
Zeppelin extension for heatmap chart using highcharts
- Host: GitHub
- URL: https://github.com/1ambda/zeppelin-highcharts-heatmap
- Owner: 1ambda
- License: other
- Created: 2017-02-10T05:23:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T12:45:54.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T18:15:47.772Z (9 months ago)
- Topics: helium, visualization, zeppelin
- Language: JavaScript
- Size: 2.7 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zeppelin-highcharts-heatmap
Heatmap Charts for Apache Zeppelin using highcharts.js
## Usage
- **xAxis**: `categorical`
- **yAxis**: `categorical`
- **colorAxis**: `number`## Screenshots
![](https://raw.githubusercontent.com/1ambda/zeppelin-highcharts-heatmap/master/screenshots/heatmap-usage.gif)
## Example Paragraph for Testing
```scala
import org.apache.commons.io.IOUtils
import java.net.URL
import java.nio.charset.Charset// Zeppelin creates and injects sc (SparkContext) and sqlContext (HiveContext or SqlContext)
// So you don't need create them manually// load bank data
val bankText = sc.parallelize(
IOUtils.toString(
new URL("https://s3.amazonaws.com/apache-zeppelin/tutorial/bank/bank.csv"),
Charset.forName("utf8")).split("\n"))case class Bank(age: Integer, job: String, marital: String, education: String, balance: Integer)
val bank = bankText.map(s => s.split(";")).filter(s => s(0) != "\"age\"").map(
s => Bank(s(0).toInt,
s(1).replaceAll("\"", ""),
s(2).replaceAll("\"", ""),
s(3).replaceAll("\"", ""),
s(5).replaceAll("\"", "").toInt
)
).toDF()
bank.registerTempTable("bank")
``````
%sql
select age, job, marital, education, avg(balance) as average
from bank
group by age, job, marital, education
limit 100
```## License
See [https://shop.highsoft.com/faq](https://shop.highsoft.com/faq)