An application which uses Angular JS directive for rendering a D3.js scatter chart with images.
The directive is here
Requires Jquery, D3.js Don't forget to include the style
D3js scatter chart inspired from here
Variable Name | Datatype | Default Value | Required |
---|---|---|---|
timeseries | boolean | false | Optional |
label | Object | label: { xAxis: "x-axis", yAxis: "y-axis" } | Optional |
margin | Object | margin: { top: 20, right: 20, bottom: 30, left: 30 } | Optional |
ticks | Object | ticks: { xAxis: 3, yAxis: 5 } } | Optional |
images | Array[Objects] | images: [ { id: "imageId", url: "images/image.png" },.... ] | Required |
animationDuration | number(integer) | 500 | Optional |
animRadius | number(integer) | 4 | Optional |
circleRadius | number(integer) | 20 | Optional |
Attribute Name | Data Type | Example |
---|---|---|
id | string | my-scatter-chart1 |
chartheight | number | 400 |
chartdata | Array[JSONs] | [{ "title": "New", "xValue": 1459490422000 , "yValue": 5, "imageId": "plant", "action": "danger" }] |
config | JSON | Check below in structure of data example |