# AutoChartPy
AutoChartPy is a Python library to automatically generate beautiful charts and dashboards from raw datasets.
## Features
- **Automatic Chart Suggestions**: Recommends the best chart types for your data.
- **Customizable Visualizations**: Create line charts, bar charts, scatter plots, and histograms.
- **Interactive Dashboards**: Combine multiple charts into one layout.
## Installation
```bash
pip install autochartpy
```
## Usage
### Initialize
```bash
from autochartpy.core import AutoChartPy
import pandas as pd
data = pd.read_csv("data.csv")
ac = AutoChartPy(data)
```
### Suggest Chart Types
```bash
suggestions = ac.suggest_chart()
print(suggestions)
```
### Generate a Chart
```bash
fig = ac.generate_chart(x="Date", y="Sales", chart_type="line")
fig.show()
```
### Create a Dashboard
```bash
charts = [
{"x": "Date", "y": "Sales", "chart_type": "line"},
{"x": "Category", "y": "Sales", "chart_type": "bar"}
]
dashboard = ac.generate_dashboard(charts)
dashboard.show()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/abdulsaboorpk/autochartpy",
"name": "autochartpy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Abdul Saboor",
"author_email": "abdulsaboor1994@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d4/74/92ac59559065ba8df4145a81fb443c6458112e4b7b4d990b6eec873daaa7/autochartpy-0.1.0.tar.gz",
"platform": null,
"description": "# AutoChartPy\r\n\r\nAutoChartPy is a Python library to automatically generate beautiful charts and dashboards from raw datasets.\r\n\r\n## Features\r\n- **Automatic Chart Suggestions**: Recommends the best chart types for your data.\r\n- **Customizable Visualizations**: Create line charts, bar charts, scatter plots, and histograms.\r\n- **Interactive Dashboards**: Combine multiple charts into one layout.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install autochartpy\r\n```\r\n## Usage\r\n### Initialize\r\n```bash\r\nfrom autochartpy.core import AutoChartPy\r\nimport pandas as pd\r\n\r\ndata = pd.read_csv(\"data.csv\")\r\nac = AutoChartPy(data)\r\n```\r\n\r\n### Suggest Chart Types\r\n```bash\r\nsuggestions = ac.suggest_chart()\r\nprint(suggestions)\r\n```\r\n\r\n### Generate a Chart\r\n```bash\r\nfig = ac.generate_chart(x=\"Date\", y=\"Sales\", chart_type=\"line\")\r\nfig.show()\r\n```\r\n\r\n### Create a Dashboard\r\n```bash\r\ncharts = [\r\n {\"x\": \"Date\", \"y\": \"Sales\", \"chart_type\": \"line\"},\r\n {\"x\": \"Category\", \"y\": \"Sales\", \"chart_type\": \"bar\"}\r\n]\r\ndashboard = ac.generate_dashboard(charts)\r\ndashboard.show()\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Automatically generate charts and dashboards from datasets",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/abdulsaboorpk/autochartpy"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1f12ad3a578cf73c7edb0c1fe70ca4a9c11a574d7fd484882f27a32f45bc7eeb",
"md5": "5a51c4ba2863fef6eabd005864061f10",
"sha256": "ad937f9ea837c4930437c969eefc5140a606330dbe3cd67db08631ab3cfd2fe5"
},
"downloads": -1,
"filename": "autochartpy-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5a51c4ba2863fef6eabd005864061f10",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 1683,
"upload_time": "2025-01-20T05:41:34",
"upload_time_iso_8601": "2025-01-20T05:41:34.909238Z",
"url": "https://files.pythonhosted.org/packages/1f/12/ad3a578cf73c7edb0c1fe70ca4a9c11a574d7fd484882f27a32f45bc7eeb/autochartpy-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d47492ac59559065ba8df4145a81fb443c6458112e4b7b4d990b6eec873daaa7",
"md5": "e454f104ff8b924baa82bf5966cec328",
"sha256": "f9004bec3c67a1c5916108f64ba035460f6392d60df869b27dd538b9da8e0942"
},
"downloads": -1,
"filename": "autochartpy-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "e454f104ff8b924baa82bf5966cec328",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 1713,
"upload_time": "2025-01-20T05:41:36",
"upload_time_iso_8601": "2025-01-20T05:41:36.926565Z",
"url": "https://files.pythonhosted.org/packages/d4/74/92ac59559065ba8df4145a81fb443c6458112e4b7b4d990b6eec873daaa7/autochartpy-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-20 05:41:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "abdulsaboorpk",
"github_project": "autochartpy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "pandas",
"specs": [
[
">=",
"1.1.0"
]
]
},
{
"name": "plotly",
"specs": [
[
">=",
"5.0.0"
]
]
},
{
"name": "pytest",
"specs": [
[
">=",
"8.3.4"
]
]
},
{
"name": "kaleido",
"specs": [
[
">=",
"0.2.1"
]
]
}
],
"lcname": "autochartpy"
}