{% extends "base.html" %} {% block title %}Visualizations{% endblock %} {% block content %}

📈 Visualizations

Interactive charts and plots from your data

{% if not has_data %}
📊
No Visualizations Yet

Upload a dataset to generate automatic interactive visualizations.

Upload Dataset
{% else %}
{% set has_corr = namespace(found=false) %} {% set has_missing = namespace(found=false) %} {% for item in viz_list %} {% if item.key == 'correlation' %} {% set has_corr.found = true %}

Correlation Heatmap

{% elif item.key == 'missing_heatmap' %} {% set has_missing.found = true %}

Missing Value Pattern

{% endif %} {% endfor %} {% if not has_corr.found and not has_missing.found %}
📊
No Overview Charts

Not enough data for correlation or missing value analysis.

{% endif %}
{% set num_count = namespace(value=0) %} {% for item in viz_list %} {% if item.key.startswith('dist_') %} {% set num_count.value = num_count.value + 1 %}

Distribution: {{ item.key[5:] }}

{% endif %} {% endfor %} {% if num_count.value == 0 %}
🔢
No Numeric Columns

Your dataset doesn't contain any numeric columns for distribution analysis.

{% endif %}
{% set cat_count = namespace(value=0) %} {% for item in viz_list %} {% if item.key.startswith('cat_') %} {% set cat_count.value = cat_count.value + 1 %}

Categories: {{ item.key[4:] }}

{% endif %} {% endfor %} {% if cat_count.value == 0 %}
📁
No Categorical Columns

Your dataset doesn't contain any categorical columns for analysis.

{% endif %}
{% set adv_count = namespace(value=0) %} {% for item in viz_list %} {% if item.key == 'pca' %} {% set adv_count.value = adv_count.value + 1 %}

PCA Analysis

{% elif item.key == 'clusters' %} {% set adv_count.value = adv_count.value + 1 %}

K-Means Clustering

{% elif item.key == 'pairplot' %} {% set adv_count.value = adv_count.value + 1 %}

Pairwise Relationships

{% endif %} {% endfor %} {% if adv_count.value == 0 %}
🔗
No Advanced Visualizations

Need more numeric columns or rows for advanced analysis (PCA, Clustering, Pairplot).

{% endif %}

Custom Visualization Builder

{% for col in columns %} {% endfor %}

Bar: 1 or 2 columns | Scatter: 2-3 columns | Pie: 1-2 columns | Histogram/Box: 1-2 columns | Heatmap: auto numeric | 3D: 3-4 columns

{% endif %}
{% endblock %}