This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Init Scales | |
const x = d3.scaleLinear() | |
.domain([0, d3.max(dataExample, (d) => d[0])]) | |
.range([0, width]) | |
.nice(); | |
const y = d3.scaleLinear() | |
.domain([0, d3.max(dataExample, (d) => d[1])]) | |
.range([height, 0]) | |
.nice(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Axis | |
const gxAxis = svgChart.append('g') | |
.attr('transform', `translate(0, ${height})`) | |
.call(xAxis); | |
const gyAxis = svgChart.append('g') | |
.call(yAxis); | |
// Add labels | |
svgChart.append('text') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Draw on canvas | |
dataExample.forEach( point => { | |
drawPoint(point); | |
}); | |
function drawPoint(point) { | |
context.beginPath(); | |
context.fillStyle = pointColor; | |
const px = x(point[0]); | |
const py = y(point[1]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to install it | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
rm postman.tar.gz | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
# to create desktop entry | |
cat > ~/.local/share/applications/postman.desktop <<EOL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
wichita-frontend: | |
build: wichita-api-dashboard-frontend # specify the directory of the Dockerfile | |
ports: | |
- "8080:80" | |
wichita-api: | |
build: wichita-api-dashboard # specify the directory of the Dockerfile |
OlderNewer