# Setting up

## Introduction

To start with setting up the Jet Chart Library, follow the steps given on this page, and you will be set to build your own cool user interface.

*Firstly, you need to add the following piece of code to your **root settings.gradle** file :-*&#x20;

{% tabs %}
{% tab title="Kotlin DSL" %}

```kotlin
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        mavenCentral()
        maven(url = "https://jitpack.io")
    }
}
```

{% endtab %}

{% tab title="Gradle" %}

<pre class="language-gradle"><code class="lang-gradle">dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
<strong>    repositories {
</strong>        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}
</code></pre>

{% endtab %}

{% tab title="Maven" %}

<pre class="language-xml"><code class="lang-xml">&#x3C;repositories>
    &#x3C;repository>
        &#x3C;id>jitpack.io&#x3C;/id>
<strong>        &#x3C;url>https://jitpack.io&#x3C;/url>
</strong>    &#x3C;/repository>
&#x3C;/repositories>
</code></pre>

{% endtab %}
{% endtabs %}

*Secondly, you need to add the following dependency to your **module's build.gradle** file :-*

{% tabs %}
{% tab title="Kotlin DSL" %}

<pre class="language-kotlin"><code class="lang-kotlin">dependencies {
<strong>    implementation("com.github.basakjeet08:JetChart:(insert latest version)")
</strong>}
</code></pre>

{% endtab %}

{% tab title="Gradle" %}

```gradle
dependencies {
    implementation 'com.github.basakjeet08:JetChart:(insert latest version)'
}
```

{% endtab %}

{% tab title="Maven" %}

```xml
<dependency>
  <groupId>com.github.basakjeet08</groupId>
  <artifactId>JetChart</artifactId>
  <version>(insert latest version)</version>
</dependency>
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Note :** After you are done with these steps you need to sync the Gradle file before you can start using the library in your projects.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-anirban.gitbook.io/jetchart/plot-tool-kit/setting-up.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
