// Instantiating world map base layer
var baseLayer = Sintium.baseLayer({
layerId: "World map",
layer: Sintium.getDefaultLightTileLayer(),
darkLayer: Sintium.getDefaultDarkTileLayer(),
});
// Instantiating data source with tools data
var toolsSource = Sintium.dataSource({
url: "https://www.barentswatch.no/api/v1/geodata/download/fishingfacility/?format=JSON"
});
// Instantiating layer with fishing tools data
var toolsLayer = Sintium.vectorLayer({
layerId: 'Tools layer',
dataSource: toolsSource,
clustered: true,
styleFunction: Sintium.generateCircleClusterStyle(11, "#2980b9", "#34495e")
});
var map = Sintium.map({
domId: "map",
layers: [baseLayer, toolsLayer]
});
var barChart = Sintium.barChart({
domId: "timeline",
dataSource: toolsSource,
xAxis: "setupdatetime",
xUnits: "days",
xRange: [new Date(2018, 5, 1), new Date(2019, 2, 30)],
yRange: [0, 200],
showYAxis: false,
brushOn: true,
margins: [10, 10, 45, 10]
});
<div id="map" style="width: 100%; height: 500px;"></div>
<div id="timeline" style="width: 100%; height: 160px;"></div>