In this tutorial, you will deploy DataLens locally, create your first dataset, build several charts for data visualization, and place them on a dashboard.
Go to the repository directory and run all the containers required to start DataLens:
cd <datalens_folder_path> && \
HC=1 docker compose up
You can run the last command with a parameter for connecting an external database:
METADATA_POSTGRES_DSN_LIST="postgres://{user}:{password}@{host}:{port}/{database}" HC=1 docker compose up
Note
Highcharts is a patented commercial product. If you enable Highcharts in your DataLens instance (with the HC=1 variable), make sure to comply with the license. When Highcharts is disabled, not all visualization types are available.
The first release of the open-source version includes everything you need to try DataLens features in your infrastructure. The repository currently hosts the service core, a set of key connectors (PostgreSQL, ClickHouse®, and YTsaurus), and the main interface components.
In the chart you created in the previous step, select Stacked area chart for the visualization type.
Replace the product subcategories with the order date on the X-axis. To do this, drag the OrderDate field from Dimensions to the X section and hold it over the ProductSubcategory field until it turns red.
Add the product category to the chart. To do this, drag the ProductCategory field from Dimensions to the Colors section.
Display a week by week chart:
Click the calendar icon next to the OrderDate field in the X section.
In the Grouping field, select Rounding → Week.
Click Apply.
Save the chart:
In the top-right corner, click → Save as copy.
In the window that opens, enter the Sales by week name for the new chart and click Save.