Chart Generator | Generate Chart by Text | Plot

Effortlessly transform textual descriptions into stunning charts using this task. Describe your desired chart type, axes, and data, and watch as Vega-Lite specifications are plotted as a PNG image. Visualize anything from pie graphs to line charts with ease.

Input

Description

This task offers a dynamic solution for transforming textual descriptions into visually appealing charts through a straightforward process. By converting the provided description into Vega-Lite chart specifications, the task subsequently generates a PNG image file representing the chart.

Applications

The versatility of this task lends itself to a wide range of chart types that may need to be generated. Whether you require a pie graph to visualize proportions, a line graph to depict trends, or any other type of chart, this task can accommodate your needs effectively.

How to use the task

Using this task is a user-friendly process that involves describing the chart you wish to create. Simply provide details about the type of chart you're aiming for, the specific axes you want to include, and how you'd like to label them. You can further customize your chart by adding text data that should be displayed, or even instruct the task to depict a mathematical function.

Here's how to get started:

  • Chart Type: Specify the kind of chart you're looking to create (e.g., pie graph, line graph, bar chart).
  • Axes: Indicate the axes you want to incorporate, such as the X-axis and Y-axis, and define how you'd like to label them (e.g., time, categories, numerical values).
  • Data: If relevant, provide the data points or values that the chart should represent. This could involve numerical data or categories that need to be visualized.
  • Customization: Tailor the chart further by including additional details like title, subtitles, color preferences, and any specific chart styling.

Once you've provided the necessary information, the task will utilize this input to generate the corresponding Vega-Lite chart specifications. These specifications serve as the blueprint for the chart's structure and appearance. The final step involves the task converting these specifications into a PNG image file that accurately embodies the chart you described.

Privacy

It's important to exercise caution when using this task, particularly with regard to sensitive information. Avoid entering any confidential or private data into the task, as it could potentially be stored or processed in ways that compromise privacy. Stick to non-sensitive information that pertains solely to the chart's visual representation and avoid sharing any personal, financial, or sensitive details. This precaution ensures that your chart creation experience remains secure and devoid of privacy concerns.

[1.0.0]:
First version
VersionAI ModelCreatedLink
1.0.003.08.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • description (Diagram description): The description of the diagram.
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/intern-text-to-image-description-chart/1.0.0?description=Create%20a%20bar%20char%20with%20activities%20on%20the%20X%20and%20hours%20on%20the%20Y%20axis.%20Eat%20is%2016%2C%20sleep%20is%208%20and%20playing%20is%204%20hours.
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('intern-text-to-image-description-chart','1.0.0', {'description': 'Create a bar char with activities on the X and hours on the Y axis. Eat is 16, sleep is 8 and playing is 4 hours.'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('intern-text-to-image-description-chart','1.0.0', description='Create a bar char with activities on the X and hours on the Y axis. Eat is 16, sleep is 8 and playing is 4 hours.')