All Projects β†’ team-moeller β†’ better-access-charts

team-moeller / better-access-charts

Licence: MIT license
Better charts for Access with chart.js

Programming Languages

vba
158 projects

Projects that are alternatives of or similar to better-access-charts

android-charts
A curated list of Android Chart libraries.
Stars: ✭ 69 (+263.16%)
Mutual labels:  chart, charts
Covid 19
πŸ“ˆ Coronavirus (COVID-19) dashboard to show the dynamics of Π‘oronavirus distribution per country
Stars: ✭ 245 (+1189.47%)
Mutual labels:  chart, charts
Cedar
JavaScript Charts for ArcGIS
Stars: ✭ 230 (+1110.53%)
Mutual labels:  chart, charts
charts
☸️ Helm Charts for YOURLS
Stars: ✭ 12 (-36.84%)
Mutual labels:  chart, charts
Mermaid
Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language
Stars: ✭ 27 (+42.11%)
Mutual labels:  chart, charts
Squid
A Ruby library to plot charts in PDF files
Stars: ✭ 205 (+978.95%)
Mutual labels:  chart, charts
HCLineChartView
HCLineChartView is a beautiful iOS library for drawing line charts. It is highly customizable and easy to use.
Stars: ✭ 22 (+15.79%)
Mutual labels:  chart, charts
Graphic
A Flutter data visualization library based on Grammar of Graphics.
Stars: ✭ 173 (+810.53%)
Mutual labels:  chart, charts
UCharts
UCharts allows creating radar charts, pie charts, half pie chart in your Unity3d Games.
Stars: ✭ 33 (+73.68%)
Mutual labels:  chart, charts
uncharted
No description or website provided.
Stars: ✭ 31 (+63.16%)
Mutual labels:  chart, charts
awesome-tools
Open-source list of awesome data visualization tools (e.g., charting libraries) for software developers πŸ“ŠπŸ“ˆ
Stars: ✭ 47 (+147.37%)
Mutual labels:  chart, charts
SwiftCharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,405 (+12557.89%)
Mutual labels:  chart, charts
Swiftcharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,336 (+12194.74%)
Mutual labels:  chart, charts
Reaviz
πŸ“Š Data visualization library for React based on D3
Stars: ✭ 215 (+1031.58%)
Mutual labels:  chart, charts
Charts
⚑ Laravel Charts β€” Build charts using laravel. The laravel adapter for Chartisan.
Stars: ✭ 2,337 (+12200%)
Mutual labels:  chart, charts
Charts.css
Open source CSS framework for data visualization.
Stars: ✭ 4,595 (+24084.21%)
Mutual labels:  chart, charts
React D3 Components
D3 Components for React
Stars: ✭ 1,599 (+8315.79%)
Mutual labels:  chart, charts
React Native Charts Wrapper
a react native charts wrapper (support android & iOS)
Stars: ✭ 2,111 (+11010.53%)
Mutual labels:  chart, charts
Laue
πŸ––πŸ“ˆ Modern charts for Vue 2.0
Stars: ✭ 245 (+1189.47%)
Mutual labels:  chart, charts
LineChartView
An interactive line chart written in SwiftUI with many customizations (colors, line size, dots, haptic feedbacks). Support value and time series.
Stars: ✭ 59 (+210.53%)
Mutual labels:  chart, charts

Better-Access-Charts

Better charts for Access with charts.js

Why Better charts for Access?

Microsoft Access urgently needs modern charts. The original charts in MS Access are from the 90s of the previous century. Microsoft has given the charts in Access a lift. They call it "Modern Charts".

There are many solutions for charts based on Java Script available on the web. This project makes use of this. We create charts using the Chart.js library and display them in the web browser control. The whole logic is hidden in some class modules.

Take a look at the demo and let yourself be inspired by the possibilities.

You want to give it a try?

  1. Download the latest release
  2. Unpack the files to a trusted folder
  3. Run the database
  4. Push the button: "Create Chart"

How to integrate into your own database?

1. Import of the class module

First, all modules with the name "BAC_*" must be imported from the demo database into your Access database.

2. Insert web browser control on form

The second step is to add a web browser control to display the chart on a form. It is best to give the control a meaningful name. This is required later in the VBA code. I like to use the name "ctlWebbrowser" for this.

The following text is entered in the "ControlSource" property: = "about: blank". This ensures that the web browser control remains empty at the beginning.

3. First lines of code for the basic functionality

The best thing to do is to add another button. In the click event, paste the following code:

Dim myChart As BAC_Chart  
Set myChart = BAC.Chart(Me.ctlWebbrowser)  
myChart.CreateChart  
  • In line 1 a variable of the type BAC_Chart is declared.
  • In line 2 a new instance of this class is created and the web browser control is assigned to the class module.
  • The chart is created in line 3.

When you run this code, you will see a chart with some data. At the moment no data source is assigned. In such a case, Better-Access Charts simply shows a standard data source with 6 entries. This is particularly practical for our example. We have now done a quick test and fundamentally implemented the chart.

4. Add a data source and define the chart type

In order for the chart to show something, it needs a data source. You can use the DataSource.ObjectName property for this, for example. Enter the name of a table or a query that contains the data to be displayed.

You can specify one or more field names using the DataSource.DataFieldNames property. If you specify multiple field names, a data series is drawn for each field. You use the DataSource.LabelFieldName attribute to specify the field from which the names of the data points are taken.

Finally, use the ChartType property to select which of the nine possible chart types should be created.

The necessary VBA code could look like this, for example:

myChart.DataSource.ObjectName = "tbl_DemoData"
myChart.DataSource.DataFieldNames = Array("Dataset1", "Dataset2", "Dataset3")
myChart.DataSource.LabelFieldName = "DataLabel"
myChart.ChartType = chChartType.Line
  • In line 1, the table "tbl_Demo_Data" is specified as the data source.
  • Line 2 names three fields for three data series.
  • Line 3 defines the name of the label field.
  • In line 4, a line chart is selected as the chart type.

5. Set further attributes for the chart

The next step is to adapt the chart to your own needs. For example, you can define a title, label the axes or adjust the default font size.

The project currently has 15 subclasses with lots of properties. You can see all of them in the documentation on the Wiki. I have also presented the individual progress in the blog.

As you can see, there are a multitude of sources. Take a look around and make use of the options provided.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].