Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8913781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:32:41+00:00 2026-06-15T04:32:41+00:00

I am creating plugin to display some counts with pie chart using this http://www.jpowered.com/

  • 0

I am creating plugin to display some counts with pie chart using this http://www.jpowered.com/

Now everything is fine but I want to connect it with database, where count will be pulled from db. They system is using three different files.

  1. HTML to render output
  2. data.txt to get value
  3. config.txt this is a configuration file for look, size etc for pie
    chart

HTML code is as below

<img src="../../graph/pie-chart.php?
data=../demo/piechart/data4.txt&
config=../demo/piechart/config4.txt"
width=700
height=400 />

Now I want to convert both txt files into php so I can connect with the database.

data.txt to data.php to pull all data from database
config.txt to allow some customization from plugin setting panel

For better understanding I am placing both text file some code.

data.txt

data1series1:   150
data2series1:   27
data3series1:   80


data1series2:   21000
data2series2:   30000
data3series2:   17000

config.txt

   <!-- Chart Characteristics -->
    width:              700
    height:             400
    ndecplaces:         0
    pecentndecplaces:   0
    depth3d:            20
    3dangle:            40

    backgroundcolor:    #ffffff

    <!-- Chart Switches -->
    3d:                 false
    displayPercentages: true
    labellines:         true
    quality:            very high

    <!-- Popup segment Value Pre & Post Symbols -->
    valuepresym: $

    <!-- thousand seperater -->
    thousandseparator: ,

    <!-- Segment Labels -->
    segmentlabels:            true
    segmentlabelfont:         Arial
    segmentlabelfontsize:     8
    segmentlabelfontbold:     false
    segmentlabelfontitalic:   false
    segmentlabelcolor:        #666666
... ----->continue to more config settings

Finally:
I want to convert these two files data.txt and config.txt to php where I can connect to the database. I have tried to convert both and data.txt I found working but config.txt doesn’t taking affect inline php code and ignoring entire property assigned through php.

Any solution for this? I am okay with any other way or other plugin which can solve my issue by allowing php to connect the database and config setup with variables.

I hope this information would be enough but if you need any more info please let me know. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:32:43+00:00Added an answer on June 15, 2026 at 4:32 am

    Using "../../graph/pie-chart.php?data=../demo/piechart/data4.txt&config=../demo/piechart/config4.txt" as your src will only send the value of data and config (../demo/piechart/data4.txt and ../demo/piechart/config4.txt, respectively) to the pie-chart.php file.
    You could simply pass the number of the config and data files (in this case “4”) to the php file and have it parse the necessary txt files accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reading some tutorials now about jQuery.. function creating,plugin creation etc. but these tutorials
I am creating a comment form based on the jquery validation plugin ( http://docs.jquery.com/Plugins/Validation
I have a plugin structured according to the boiler plate suggested here: http://markdalgleish.com/2011/05/creating-highly-configurable-jquery-plugins/ the
I am using open flash chart 2 (the plugin) in my rails application. Everything
I'm interested in creating a plugin that does this simple task: Steps 1. User
I am using the Grails ajaxflow plugin for creating a basic wizard. One issue
I creating a plugin for Openfire, and there are some initialization steps in the
I'm using the jqGrid plugin to jQuery to display the results of database query
I am creating a dropdown that slides down when hovered over. This is some
I'm creating a jQuery plugin to display a tooltips. I would like to add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.