{"id":19795446,"url":"https://github.com/digiteinfotech/kaironviz","last_synced_at":"2026-07-18T11:02:32.466Z","repository":{"id":224340162,"uuid":"719990051","full_name":"digiteinfotech/KaironViz","owner":"digiteinfotech","description":"Kairon Vizualizations repo","archived":false,"fork":false,"pushed_at":"2024-03-05T09:45:26.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T16:08:52.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digiteinfotech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-17T10:40:41.000Z","updated_at":"2023-11-22T12:47:48.000Z","dependencies_parsed_at":"2024-03-05T10:47:17.505Z","dependency_job_id":null,"html_url":"https://github.com/digiteinfotech/KaironViz","commit_stats":null,"previous_names":["digiteinfotech/kaironviz"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digiteinfotech/KaironViz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digiteinfotech%2FKaironViz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digiteinfotech%2FKaironViz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digiteinfotech%2FKaironViz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digiteinfotech%2FKaironViz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digiteinfotech","download_url":"https://codeload.github.com/digiteinfotech/KaironViz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digiteinfotech%2FKaironViz/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265711173,"owners_count":23815486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T07:16:23.201Z","updated_at":"2025-10-24T01:04:32.063Z","avatar_url":"https://github.com/digiteinfotech.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kairon Visualization\n\n### version 0.0.6\n\nDifferent plots for data visualization in notebook and html export.\n\nLook at `example.ipynb` notebook for basic demo uses.\n\n## Installing\n\n\u003e pip install kaironviz\n\n## Available charts\n\n-   sanky_chart\n-   sanky_chart2\n-   drill_chart\n-   word_cloud\n-   tree_diagram\n\n## Sanky Chart\n\n### `sanky_chart`\n\nThis function generates a Sanky chart to visualize the relationships between columns in a DataFrame.\n\n**Parameters:**\n\n-   `dataframe`: pandas DataFrame containing the data to be visualized.\n-   `headers`: List of column headers in the DataFrame.\n-   `height`: Height of the chart (default is 450).\n-   `legend`: Title of the chart legend (default is \"chart example\").\n-   `legend_style`: CSS style for the legend (default is 'text-align: center; font: 28px Arial').\n-   `text_scale`: Scaling factor for text size (default is 1).\n-   `text_color`: Color of the text (default is '#333').\n-   `text_font`: Font for the text (default is 'Arial').\n-   `draw_labels`: Boolean indicating whether to draw labels (default is True).\n-   `draw_column_labels`: Boolean indicating whether to draw column labels (default is True).\n-   `trancation`: Truncation value for labels (default is 20).\n-   `node_width`: Width of nodes in the chart (default is 20).\n-   `vertical_spacing`: Vertical spacing between nodes (default is 20).\n-   `show_toolbar`: Boolean indicating whether to display the toolbar (default is True).\n-   `from_prefix`, `to_prefix`, `from_suffix`, `to_suffix`: Prefixes and suffixes for from/to labels (default is empty strings).\n-   `label_distance`: Distance of labels from nodes (default is 10).\n-   `use_gradient`: Boolean indicating whether to use gradient colors (default is True).\n-   `client_height`: Client height of the chart (default is 0).\n-   `compact`: Removes unnecessary data (default is True).\n\n### `sanky_chart2`\n\nThis function generates a Sanky chart to visualize relationships between source and destination column entities, where the level is the column that the entities belong to in the Sanky chart.\n\n**Parameters:**\n\n-   `dataframe`: pandas DataFrame containing the data to be visualized.\n-   `src_name`, `dest_name`: Names of the source and destination columns.\n-   `src_level`, `dest_level`: Levels(integer indices) of the source and destination columns.\n-   `height`: Height of the chart (default is 450).\n-   `legend`: Title of the chart legend (default is \"chart example\").\n-   `legend_style`: CSS style for the legend (default is 'text-align: center; font: 28px Arial').\n-   `text_scale`: Scaling factor for text size (default is 1).\n-   `text_color`: Color of the text (default is '#333').\n-   `text_font`: Font for the text (default is 'Arial').\n-   `draw_labels`: Boolean indicating whether to draw labels (default is True).\n-   `draw_column_labels`: Boolean indicating whether to draw column labels (default is True).\n-   `trancation`: Truncation value for labels (default is 20).\n-   `node_width`: Width of nodes in the chart (default is 20).\n-   `vertical_spacing`: Vertical spacing between nodes (default is 20).\n-   `show_toolbar`: Boolean indicating whether to display the toolbar (default is True).\n-   `from_prefix`, `to_prefix`, `from_suffix`, `to_suffix`: Prefixes and suffixes for from/to labels (default is empty strings).\n-   `label_distance`: Distance of labels from nodes (default is 10).\n-   `color_mode`: Color mode for the chart (default is 0).\n-   `use_gradient`: Boolean indicating whether to use gradient colors (default is True).\n-   `client_height`: Client height of the chart (default is 0).\n-   `restructure_levels`: Boolean indicating if you need to rearrange columns for larger number of levels (default is False)\n\n## Drill Chart\n\n### `drill_chart`\n\nThis function creates an n-level drill-down chart.\n\n**Parameters:**\n\n-   `data`: Data for the drill chart.\n-   `start_label`: Label for the starting point of the drill chart.\n-   `y_label`: Label for the y-axis (default is 'values').\n-   `legend`: Title of the chart legend (default is 'Drill Chart').\n-   `legend_color`: Color of the legend text (default is 'black').\n-   `legend_font`: Font style for the legend (default is 'Bold 20px Arial').\n-   `legend_pos`: Position of the legend (default is 'bottom').\n-   `legend_align`: Alignment of the legend (default is 'center').\n-   `nav_color`: Color of the navigation bar (default is '#046688').\n-   `nav_font`: Font style for the navigation bar (default is '16px Arial').\n-   `nav_justify`: Justification for the navigation bar (default is 'right').\n-   `nav_padding`: Padding for the navigation bar (default is '10px').\n-   `label_scale`: Scaling factor for labels (default is 1.2).\n-   `label_color`: Color of labels (default is 'black').\n-   `resolution`: Resolution of the chart (default is 1.2).\n-   `background_color`: Background color of the chart (default is 'transparent').\n-   `height`: Height of the chart (default is 480).\n-   `max_column_width`: Maximum width for columns in the chart (default is 100).\n\n## Word Cloud\n\n### `word_cloud`\n\nThe `word_cloud` function is used to create a word cloud chart.\n\n### Parameters:\n\n-   `data`: This can be a string, a list, or a DataFrame. If it's a string or a list, the function will count the frequency of each word and create a DataFrame. If it's a DataFrame, it will be copied as is.\n-   `height` (default = 480): The height of the word cloud chart.\n-   `width` (default = 640): The width of the word cloud chart.\n-   `max_item` (default = 400): The maximum number of words to display in the word cloud.\n-   `max_font_size` (default = 60): The maximum font size of the words in the word cloud.\n-   `min_font_size` (default = 12): The minimum font size of the words in the word cloud.\n-   `color_mode` (default = True): If set to True, the word cloud will be colored. If False, it will be in grayscale.\n-   `font` (default = 'Helvatica'): The font of the words in the word cloud.\n\n## Diagram\n\n### tree_diagram\n\nThe `tree_diagram` function is used to create a tree diagram chart.\n\n### Parameters:\n\n-   `data_dict`: A dictionary representing the tree structure.\n-   `height` (default = 450): The height of the tree diagram chart.\n-   `text_color` (default = '#333'): The color of the text in the tree diagram.\n-   `line_color` (default = '#333'): The color of the lines in the tree diagram.\n-   `box_background` (default = 'transparent'): The background color of the boxes in the tree diagram.\n-   `border_radius` (default = 0.6): The border radius of the boxes in the tree diagram.\n-   `border_color` (default = '#333'): The color of the borders of the boxes in the tree diagram.\n-   `font_size` (default = 14): The font size of the text in the tree diagram.\n-   `font_family` (default = 'Arial'): The font of the text in the tree diagram.\n-   `orientation` (default = 'vertical'): The orientation of the tree diagram. It can be 'vertical' or 'horizontal'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigiteinfotech%2Fkaironviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigiteinfotech%2Fkaironviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigiteinfotech%2Fkaironviz/lists"}