How to Install and Manage PostGIS with a Non-Superuser Role

Image
Prerequisite: PostgreSQL Version This guide assumes you are using PostgreSQL version 14 or later, which supports the necessary commands for PostGIS installation and management. Ensure your PostgreSQL server is up-to-date before proceeding. This guide ensures that PostGIS is installed and configured properly for a specific user, such as administrator , while avoiding common issues. 1. Ensure Superuser Access sudo -i -u postgres psql --dbname=financethat 2. Create a Role for PostGIS Management CREATE ROLE administrator WITH LOGIN PASSWORD 'your_secure_password'; GRANT ALL PRIVILEGES ON DATABASE financethat TO administrator; 3. Install PostGIS To install PostGIS on Ubuntu, first ensure you have the required PostgreSQL version installed. Then, use the following commands: sudo apt update sudo apt install postgis postgresql-14-postgis-3 Replace 14 with your PostgreSQL version if different. After installation, enable PostGIS in...

Highcharts: A 10 minutes overview.

A Norway-based company 'Highsoft' offering charting library written in pure javascript. Its a major addon to web applications requires interactive charts. Currently they're supporting many chart types including line, area, column, bar, pie, scatter, bubble, gauge, spline, areaspline and polar etc.

Already Highcharts is providing a descriptive demo page considering all examples (Highcharts Demos). The pupose of the article only to understand maximum aspects in a view.

Features :

Compatible with all major browsers, it also provides features like DateTime support, Export (PDF/ PNG/ JPG / SVG), Print and Zoomablity etc.

Installation:

Its a single file downloadable from (https://www.highcharts.com/). Also packages through npm and Bower are avalable. We may load file on our domain or use CDN version.

Load files from your own domain (Insert in html head)

<script src = "/js/highcharts.js">

CDN Version (Insert in html head)

<script src = "https://code.highcharts.com/highcharts.js">

Highcharts general elements are worth to understand. Then next step is formatting. It helps to mould highcharts as per our requirement.

Below are few very important queries, while working with Highcharts.

How to format Legend?
How to format x-axes?
How to format y-axes?
How to format column?
How to format tooltip?
How to format y-axes stackLabels?
How to colour the columns?
How to add event on columns?

In below image all questions are answered.
Also view complete example in jsfiddle.

Also we'll discuss other aspects of highcharts soon.

Comments

  1. https://stackoverflow.com/questions/48748550/google-chart-horizontal-scrolling

    ReplyDelete

Post a Comment

Popular posts from this blog

Managing Python Projects with Pipenv and Pyenv: A Comprehensive Guide

Differences Between List, Dictionary, and Tuple in Python

Implementing Throttling in Django REST Framework.