teleren/devto huggingface dataset:
VChart How to change the width of bars in a bar chart?
Published: 2024-06-07 09:05:17

# Title

VChart How to change the width of bars in a bar chart?

# Description

I am using vchart to create a bar chart and I want to set the width of the bars. However, I couldn't find the corresponding configuration item in the documentation. I tried some parameters, but none of them worked. How can I set the width of the bars?

# Solution

To set the width of the bars in a vchart bar chart, you can adjust the width of the chart itself. The bar chart has a `barWidth` property that can be used to adjust the width of the bars.

# Example Code

```JavaScript
const spec = {
  type: 'bar',
  data: {
    values: [
      {
        time: '2:00',
        value: 8
      },
      {
        time: '4:00',
        value: 9
      },
      {
        time: '6:00',
        value: 11
      },
      {
        time: '8:00',
        value: 14
      },
      {
        time: '10:00',
        value: 16
      },
      {
        time: '12:00',
        value: 17
      },
      {
        time: '14:00',
        value: 17
      },
      {
        time: '16:00',
        value: 16
      },
      {
        time: '18:00',
        value: 15
      }
    ]
  },
  barWidth: '60%',
  barMinWidth: 20,
  barMaxWidth: 50,
  xField: 'time',
  yField: 'value',
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
```

# Result

![](https://bytedance.larkoffice.com/space/api/box/stream/download/asynccode/?code=NTg4YTY5YzVlMmU5ODA3OWNhNTg3OWIzMmRlNjY2NjVfREhaeTJ2Yk50MGxGZlJQalVabVlWRWZsTFI2NXNjWG9fVG9rZW46QTNneWJKcVFMbzd2SDh4VjhJM2NBN05rblJjXzE3MTc3NTEwODA6MTcxNzc1NDY4MF9WNA)

# Related Documentation

- `barWidth` configuration: https://visactor.bytedance.net/vchart/option/barChart#barWidth
  
- VChart github: [GitHub - VisActor/VChart: VChart, more than just a cross-platform charting library, but also an expressive data storyteller.](https://github.com/VisActor/VChart)
Enjoy Delicious Treats at Dip n Bite
Published: 2024-06-07 09:05:07

Dip n Bite, explore Jaipur's culinary scene! Savor delicious pizzas and specialty coffee blends that will make your mealtime experience even more memorable. Experience the ideal balance of tastes at Dip n Bite, Jaipur's favorite restaurant for both pizza and coffee lovers.

[Dip n bite Jaipur](https://dipnbite.com/)
Best Heart Hospital in Hyderabad
Published: 2024-06-07 09:04:59

#Diabetes and your #Heart
They have a stronger connection than you think

#Acute or #Chronic
Disorders such as #Diabetes #Thyroid #BloodPressure
#Asthma can take a toll on your body

Consult #DrNareshKumarMonigari at #AaradhyaClinics #Hyderabad
To help manage and prevent complications for all your #GeneralMedicine needs.

A thorough evaluation, followed by treatment and prevention to help you live the best version of your life.

Walk into #AaradhyaSpecialityClinics
#Bandlaguda #Hyderabad

Visit our website to know more:
https://www.aaradhyaspecialityclinics.com/ or
Book your appointment, call us at +91 95535 36465

Follow us on our social media page Instagram for more updates:

https://www.instagram.com/aaradhya_speciality_clinics
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pbs2ro7pnvz1r15aa6l5.jpg)
How to customize the labels of a pie chart in VChart?
Published: 2024-06-07 08:59:46

# Title

How to customize the labels of a pie chart in VChart?

# Description

Can the labels of a VChart pie chart be customized? I want to add the values to the labels.

![](https://bytedance.larkoffice.com/space/api/box/stream/download/asynccode/?code=YTdmODdmNTQ3ZTE5MTFiOWViNGVlMjQxZGIyMjZmZGRfZTlEMmFXZjFOeGhhSVBkWVFEbUxhVzAxNmpxZFl5dlBfVG9rZW46UTJIeGJRUzh5b1hmU1h4NHc3Q2NSdFkwbjhmXzE3MTc3NTA3NDU6MTcxNzc1NDM0NV9WNA)

# Solution

The label configuration of a pie chart is in the `label` field: https://visactor.io/vchart/option/pieChart#label. There is a property called `formatMethod` in this field, which is used to format the label content: https://visactor.io/vchart/option/pieChart#label.formatMethod. By configuring a function, the label can be formatted. The function receives parameters including the original text and data, and returns a string representing the formatted label text.

# Code Example

```TypeScript
const spec = {
  type: 'pie',
  data: [
    {
      id: 'id0',
      values: [
        { type: 'oxygen', value: '46.60' },
        { type: 'silicon', value: '27.72' },
        { type: 'aluminum', value: '8.13' },
        { type: 'iron', value: '5' },
        { type: 'calcium', value: '3.63' },
        { type: 'sodium', value: '2.83' },
        { type: 'potassium', value: '2.59' },
        { type: 'others', value: '3.5' }
      ]
    }
  ],
  outerRadius: 0.8,
  valueField: 'value',
  categoryField: 'type',
  title: {
    visible: true,
    text: 'Statistics of Surface Element Content'
  },
  legends: {
    visible: true,
    orient: 'left'
  },
  label: {
    visible: true,
    formatMethod: (text, datum) => {
      return `${text}: ${datum.value}`
    }
  },
  tooltip: {
    mark: {
      content: [
        {
          key: datum => datum['type'],
          value: datum => datum['value'] + '%'
        }
      ]
    }
  }
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
```

# Result

After running the code, the labels can be formatted.

Online demo: https://codesandbox.io/p/sandbox/pie-label-format-9k8wlr?file=%2Fsrc%2Findex.ts%3A48%2C2

![](https://bytedance.larkoffice.com/space/api/box/stream/download/asynccode/?code=NDQxNzViNTJmNmYyOWQ5ZmFkZGE2YmI0YTNmZTgzZGZfVnl1czZvRzN4czEzQWJVaEYwbE1qaGxxN2ZWa1cyZU9fVG9rZW46U2pLV2JSNmtUbzhZNTV4ajZXaGNBaUNrbk5jXzE3MTc3NTA3NDU6MTcxNzc1NDM0NV9WNA)

# Related Documents

- VChart official website: https://visactor.io/vchart/
  
- formatMethod documentation: https://visactor.io/vchart/option/pieChart#label.formatMethod
  
- VChart GitHub: [GitHub - VisActor/VChart: VChart, more than just a cross-platform charting library, but also an expressive data storyteller.](https://github.com/VisActor/VChart)
SIMILAR TERMS USED IN CLOUD COMPUTING
Tags: beginners, cloud, cloudcomputing, terminologies
Published: 2024-06-07 08:58:47

_Hello there. Time for a quick break._

Over the past weeks I realised I have been using certain terms in the wrong contexts and decided to make a post about this in case there are others in the same shoes.

## **PROVISIONING VS DEPLOYMENT**
### **PROVISIONING**
- process of setting up and configuring the necessary infrastructure and resources for a solution or application.
- includes creating virtual machines, storage accounts, databases, and other resources.
- involves installing and configuring software, services, and agents on the provisioned resources.

### **DEPLOYMENT**
- process of releasing and making a solution or application available for use.
- involves installing and configuring the solution or application on the provisioned resources.
- includes configuring networking, security, and other settings to make the solution or application accessible and usable.

In summary, provisioning is the process of setting up the necessary resources and infrastructure, while deployment is the process of releasing and making the solution or application available on those resources.

## **DATABASE VS STORAGE**
- Data structure: Storage focuses on unstructured data, while databases manage structured data.
- Data retrieval: Storage provides direct access to data, while databases enable querying and filtering.
- Data consistency: Databases enforce data consistency and transactions, while storage focuses on data durability.
- Scalability: Both storage and databases can scale, but databases require more complex scaling strategies.

## **AUTOMATION VS ORCHESTRATION**
Automation refers to the use of software or tools to execute repetitive tasks or processes without human intervention. It focuses on automating individual tasks or workflows.
Orchestration, on the other hand, refers to the coordination and management of multiple automated tasks or workflows across different systems, services, or applications. It focuses on managing the entire lifecycle of complex processes, ensuring that multiple tasks are executed in the correct order, and handling dependencies, errors, and rollbacks.

In other words, automation is about executing a specific task, while orchestration is about managing the entire process, including multiple tasks, dependencies, and workflows while automation is a key aspect of orchestration, orchestration is a broader concept that encompasses automation, coordination, and management of complex processes and workflows.


_Now our more experienced colleagues can’t tell that we’re near-noobs, right¿_
Clinical Research Courses Career
Published: 2023-07-07 10:48:02

Clinical research courses offer a wide range of [career](https://www.technobridge.in/training/clinical-research/clinical-research-courses-scope-career-salary-syllabus-eligibility)  opportunities in the healthcare industry. Graduates of these courses can pursue various roles in pharmaceutical companies, contract research organizations (CROs), academic institutions, government agencies, and healthcare facilities. Here are some common career paths and the corresponding salary potential:
1. Clinical Research Associate (CRA):
CRAs are responsible for monitoring [Clinical Trials](https://www.technobridge.in/training/clinical-research/best-clinical-research-courses-in-pune-by-technobridge-systems) 	, ensuring compliance with protocols, collecting and analyzing data, and maintaining study documentation. Entry-level CRAs can expect a salary range of approximately $50,000 to $70,000 per year. With experience and advancement, senior-level CRAs can earn salaries ranging from $70,000 to $100,000 or more annually.
2. Clinical Data Manager:
Clinical data managers oversee the collection, management, and analysis of clinical trial data. They ensure data quality, integrity, and adherence to regulatory requirements. The salary for [Drug Safety Training](https://www.technobridge.in/training/clinical-research/pharmacovigilance-courses-future-career-salary) managers typically ranges from $60,000 to $90,000 per year. Senior-level professionals with extensive experience may earn salaries exceeding $100,000 annually.
Overall, [PG Diploma](https://www.technobridge.in/training/clinical-research/best-clinical-research-courses-in-pune-by-technobridge-systems) in clinical research courses provide a strong foundation for a rewarding career in the healthcare industry, with ample opportunities for growth, advancement, and competitive salaries.
VTable usage issue: How to set only one column to not be selected for operation
Tags: visactor, vtable
Published: 2024-06-07 08:58:24

### Question title

How to set only one column that cannot be selected for operation  

  

### Problem description

How to click a cell in a column of a table without selecting it?  

  

### Solution

VTable provides `disableSelect`and `disableHeaderSelect`configurations in the `column`:  

- DisableSelect: The content of this column is partially disabled  

- disableHeaderSelect: Disable the selection of the header section of the list  

  

### Code example


```javascript
const options = {
    columns: [
        {
            field: 'name',
            title: 'name',
            disableSelect: true,
            disableHeaderSelect: true
        },
        // ......
    ],
    //......
};
```

  

Full sample code (you can try pasting it into the [editor ](https%3A%2F%2Fwww.visactor.io%2Fvtable%2Fdemo%2Ftable-type%2Flist-table-tree)):  


```typescript
let  tableInstance;
  fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json')
    .then((res) => res.json())
    .then((data) => {

const columns =[
    {
        "field": "Order ID",
        "title": "Order ID",
        "width": "auto",
        disableSelect: true,
        disableHeaderSelect: true
    },
    {
        "field": "Customer ID",
        "title": "Customer ID",
        "width": "auto"
    },
    {
        "field": "Product Name",
        "title": "Product Name",
        "width": "auto"
    }
];

const option = {
  records:data,
  columns,
  widthMode:'standard',
  columnWidthComputeMode: 'only-header'
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;
    })
```

### Related Documents

Related api: https://www.visactor.io/vtable/option/ListTable-columns-text#disableSelect  

github：https://github.com/VisActor/VTable
VTable usage issue: How to listen to table area selection and cancellation events
Tags: visactor, vtable
Published: 2024-06-07 08:57:05

### Question title

How to listen to the table area selection cancellation event  

  

### Problem description

Hope to be able to select and cancel events through events (click other areas of the table or click outside the table).  

  

### Solution

VTable provides **`SELECTED_CLEAR`**events that are triggered after an operation is deselected (and there are no selected areas in the current chart area)  

  

### Code example


```javascript
const tableInstance = new VTable.ListTable(option);
tableInstance.on(VTable.ListTable.EVENT_TYPE.SELECTED_CLEAR, () => {
    console.log("selected clear!");
});
```

  

Full sample code (you can try pasting it into the [editor ](https%3A%2F%2Fwww.visactor.io%2Fvtable%2Fdemo%2Ftable-type%2Flist-table-tree)):  


```typescript
let  tableInstance;
  fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json')
    .then((res) => res.json())
    .then((data) => {

const columns =[
    {
        "field": "Order ID",
        "title": "Order ID",
        "width": "auto"
    },
    {
        "field": "Customer ID",
        "title": "Customer ID",
        "width": "auto"
    },
    {
        "field": "Product Name",
        "title": "Product Name",
        "width": "auto"
    }
];

const option = {
  records:data,
  columns
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;

tableInstance.on(VTable.ListTable.EVENT_TYPE.SELECTED_CLEAR, () => {
    console.log("selected clear!");
});
    })
```

### Related Documents

Related api: https://www.visactor.io/vtable/api/events#SELECTED_CLEAR  

github：https://github.com/VisActor/VTable
What Are Your Go-To Tools for Back-End Development?
Tags: backend, backenddevelopment, devops, webdev
Published: 2024-06-07 08:55:22

In the dynamic world of back-end development, choosing the right tools can significantly impact the efficiency, scalability, and maintainability of your applications. Every developer has their own set of preferred tools that they rely on to streamline their workflow and solve common challenges effectively.

**We want to hear from you:** What are your go-to tools for back-end development? Share your favorite programming languages, frameworks, libraries, and software that help you build robust and reliable back-end systems.

**Here are a few to get the conversation started:**

**Programming Languages:** Which languages do you prefer and why? For instance, do you use Node.js for its asynchronous capabilities, Python for its simplicity, or Go for its performance?

**Frameworks:** What frameworks do you rely on? Share your thoughts on Express.js, Django, Spring Boot, or any other framework that you find indispensable.

**Databases:** What are your preferred databases? Discuss your experiences with SQL databases like PostgreSQL or MySQL, NoSQL options like MongoDB, or even newer technologies like graph databases.

**Development Environments and Tools:** Which IDEs, code editors, or development environments do you use? Are there essential plugins or extensions that boost your productivity?

**Testing and Debugging:** What tools do you use for testing and debugging your code? Do you have favorite unit testing frameworks or integration testing tools?

By sharing your experiences and preferences, you can help others discover new tools and approaches that might improve their back-end development workflows.

Let’s dive in and discuss the tools that make your back-end development both effective and enjoyable!
Trying out arch 🧐 ...btw
Tags: archlinux, firstpost
Published: 2024-06-07 08:53:16

This is my first post. Planning to have full blog here soon about web dev. 

Recently transitioned from Ubuntu to Arch Linux, intrigued by its reputation and eager to explore its capabilities. Will see what stripes this tiger has. Flexing now in front of myself that i use arch... (like, this is soooo proffesional 😅)




Here it is my neofetch for everybody in net of course.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3nwo2yha55vqzf7rbabc.png)
Omega Institute Nagpur
Tags: digitalmarketing, seo, courses, traininginstitute
Published: 2024-06-07 08:52:50

[](https://maps.app.goo.gl/KGCuNR6mqPrz3kY36)

Omega Institute Nagpur is a premier educational institution dedicated to fostering academic excellence and holistic development. Known for its state-of-the-art infrastructure and innovative teaching methodologies, Omega Institute offers a wide range of programs, including undergraduate, postgraduate, and professional courses across various disciplines. Our experienced faculty members are committed to providing personalized guidance and support, ensuring that each student achieves their full potential.

At Omega Institute, we emphasize a blend of theoretical knowledge and practical skills, preparing our students for successful careers in their chosen fields. Our comprehensive curriculum is designed to stay abreast of industry trends, integrating the latest advancements and technologies. We also provide ample opportunities for extracurricular activities, encouraging students to develop leadership, teamwork, and creative thinking.

With a focus on excellence, integrity, and innovation, Omega Institute Nagpur stands out as a beacon of quality education, shaping future leaders and professionals equipped to make significant contributions to society and industry.
Parul University - Best Private University in Vadodara,Gujarat,India
Tags: university, education, college
Published: 2024-06-07 08:49:36

Parul University, proudly accredited with an A++ grade by NAAC, stands as a premier private educational institution located in the vibrant city of Vadodara, Gujarat. Our university is dedicated to providing a rich and diverse array of educational programs designed to foster academic excellence and holistic development.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/agnvz8bkq87ic4wk2u1f.png)


At [Parul University](https://paruluniversity.ac.in/), we believe in nurturing talent through a comprehensive curriculum that spans various fields of study. Our programs are meticulously crafted to ensure that students receive the best possible education, preparing them to excel in their chosen careers. We offer undergraduate, postgraduate, and doctoral programs across disciplines such as engineering, management, arts, sciences, healthcare, and more.

What sets Parul University apart is our commitment to global education. We have established a robust network of strategic partnerships and collaborations with leading universities and institutions worldwide. This ever-growing network allows us to provide our students with unparalleled academic exposure and opportunities for international learning experiences.

Our global academic exposure program is one of the most enriching aspects of studying at Parul University. Through a wide range of inbound and outbound exchange programs, students have the chance to study abroad, immerse themselves in different cultures, and gain a truly global perspective. Whether it's through semester exchanges, internships, or collaborative research projects, our students benefit from the diverse and enriching experiences offered by our partner institutions across the globe.

In addition to academic pursuits, Parul University emphasizes the importance of personal and professional growth. We offer numerous opportunities for students to engage in extracurricular activities, leadership development programs, and community service initiatives. Our state-of-the-art campus facilities, including modern classrooms, well-equipped laboratories, libraries, and recreational areas, provide a conducive environment for learning and growth.

At Parul University, we are committed to shaping the leaders of tomorrow by providing an education that is not only academically rigorous but also globally relevant. Join us and be a part of an institution where excellence in education meets a world of opportunities. Explore our diverse programs and experience the difference that comes with a truly international education.
Essential React Libraries for Web Development in 2024
Tags: react, javascript, webdev
Published: 2024-06-07 08:49:08

In 2024, the React ecosystem is thriving with numerous libraries that significantly simplify web application development. As a React developer, I've found several libraries indispensable for creating efficient and visually appealing applications. Here's a rundown of the libraries I frequently use and recommend:

**_UI Library:_**

Mantine UI: In 2024, Mantine UI has become my go-to choice for a comprehensive UI library. It stands out due to its unique and highly practical components that are ready to use out of the box. This library eliminates the need to design components from scratch, allowing developers to focus more on functionality. Mantine also offers its own hooks for form state management, which is incredibly convenient. For handling complex tables, I rely on mantine-react-table. I highly recommend trying Mantine UI in your projects and sharing your experience.

**_State Management (Global and Server-Side):_**

For global state management, I use a combination of react-hooks with react-context and react-reducer hooks. For smaller state management tasks, I sometimes incorporate react-stateful hooks.
For server-side data fetching, react-query is my preferred choice. It efficiently handles data fetching and mutations, making server-side state management straightforward. I also use axios for making HTTP requests, which pairs well with react-query.

**_Charts:_**

While Mantine provides some minimal charting capabilities, for more complex charting needs, I turn to nivo charts. Nivo offers a rich set of features for creating beautiful and interactive charts.
PDF Generation:

**_For generating PDFs_**

react-to-pdf is my tool of choice. It simplifies the process of converting React components into PDF documents, making it a valuable addition to my development toolkit.

These libraries have proven to be incredibly valuable in my development workflow, enhancing productivity and the overall quality of the applications I build. I encourage you to explore these tools and see how they can benefit your projects.